/* CWC · Chris Welham Coaching. Phone first; light and dark follow the visitor's device. */
:root {
  --bg: #FBF6EF; --surface: #FFFFFF; --sunk: #F3ECE2; --ink: #171412; --muted: #5C534C; --line: rgba(23, 20, 18, .13);
  --red: #D7192A; --red-text: #B3121F; --on-red: #FFFFFF; --band: #171412; --band-ink: #F7F1EA; --band-muted: #C9BFB6;
  --head: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif; --body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1160px; --r: 14px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #15110F; --surface: #1F1A17; --sunk: #1A1513; --ink: #F5EFE8; --muted: #B8ADA4; --line: rgba(245, 239, 232, .14);
    --red-text: #FF7A84; --band: #0E0B0A; --band-ink: #F5EFE8; --band-muted: #B8ADA4;
  }
}
:root[data-theme="dark"] {
  --bg: #15110F; --surface: #1F1A17; --sunk: #1A1513; --ink: #F5EFE8; --muted: #B8ADA4; --line: rgba(245, 239, 232, .14);
  --red-text: #FF7A84; --band: #0E0B0A; --band-ink: #F5EFE8; --band-muted: #B8ADA4;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.125rem/1.6 var(--body); overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--red-text); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--head); font-weight: 800; line-height: 1.02; letter-spacing: .005em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 9vw, 5.2rem); font-style: italic; text-transform: uppercase; }
h2 { font-size: clamp(2rem, 6vw, 3.2rem); font-style: italic; text-transform: uppercase; }
h3 { font-size: 1.55rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .wrap { padding: 0 28px; } }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--red); color: #fff; border-radius: 8px; font-weight: 600; }
.skip:focus { top: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header */
.top { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 12px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; min-width: 0; margin-right: auto; }
.brand svg { width: 76px; height: auto; flex: none; }
.brand-name { display: flex; flex-direction: column; min-width: 0; font-family: var(--head); line-height: 1.05; }
.brand-name b { font-weight: 700; font-size: 1.02rem; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.tagline { font-family: var(--head); font-weight: 700; font-size: .72rem; letter-spacing: .26em; text-transform: uppercase; color: var(--red-text); white-space: nowrap; }
.nav { display: none; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .98rem; padding: 8px 2px; border-bottom: 2px solid transparent; white-space: nowrap; }
.top .btn { white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--red); }
.menu { position: relative; }
.menu summary { list-style: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line); cursor: pointer; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary i { display: block; width: 20px; height: 2px; background: var(--ink); margin: 2px 0; border-radius: 2px; }
.menu summary span { display: grid; gap: 2px; }
.menu[open] summary { background: var(--sunk); }
.menu-panel { position: absolute; right: 0; top: 56px; width: min(300px, calc(100vw - 32px)); padding: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .45); display: grid; }
.menu-panel a { padding: 12px 12px; color: var(--ink); text-decoration: none; font-weight: 600; border-radius: 10px; }
.menu-panel a:hover, .menu-panel a[aria-current="page"] { background: var(--sunk); }
.menu-panel .btn { margin-top: 8px; justify-content: center; color: var(--on-red); }
.top .btn.small { display: none; }
.top .wrap { max-width: 1400px; }
@media (min-width: 1180px) {
  .nav { display: flex; gap: 18px; margin-right: 6px; }
  .menu { display: none; }
  .top .btn.small { display: inline-flex; }
}
@media (max-width: 380px) { .brand svg { width: 62px; } .brand-name b { font-size: .92rem; } .tagline { font-size: .64rem; letter-spacing: .2em; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 12px 24px; border-radius: 999px; background: var(--red); color: var(--on-red); font: 600 1.05rem/1.2 var(--body); text-decoration: none; border: 2px solid var(--red); cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -12px rgba(215, 25, 42, .7); text-decoration: none; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn.line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.line:hover { box-shadow: none; background: var(--sunk); }
.btn.small { min-height: 44px; padding: 8px 18px; font-size: .96rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.band .btn.line { color: var(--band-ink); border-color: var(--band-ink); }
.band .btn.line:hover { background: rgba(255, 255, 255, .08); }

/* Sections */
section { padding: 56px 0; }
@media (min-width: 900px) { section { padding: 88px 0; } }
.kicker { display: inline-block; font-family: var(--head); font-weight: 700; font-size: .9rem; letter-spacing: .22em; text-transform: uppercase; color: var(--red-text); margin-bottom: 12px; }
.lede { font-size: clamp(1.15rem, 2.6vw, 1.4rem); line-height: 1.5; color: var(--muted); max-width: 42rem; }
.copy { max-width: 44rem; }
.copy h2 { margin-top: 1.2em; }
.copy h3 { margin-top: 1.4em; }
.sunk { background: var(--sunk); }
.band { background: var(--band); color: var(--band-ink); }
.band .lede, .band .muted { color: var(--band-muted); }
.band .kicker { color: #FF7A84; }
.band a:not(.btn) { color: #FF9AA2; }
.muted { color: var(--muted); }
.small { font-size: .92rem; }
.center { text-align: center; }

/* Page heads */
.page-head { padding: 44px 0 32px; }
@media (min-width: 900px) { .page-head { padding: 72px 0 40px; } }
.page-head h1 { max-width: 15ch; }
.page-head .lede { margin-bottom: 0; }

/* Home hero */
.hero { padding: 28px 0 48px; }
.hero .wrap { display: grid; gap: 28px; align-items: center; }
.hero h1 { font-size: clamp(2.7rem, 11vw, 5.6rem); margin-bottom: .3em; }
.hero h1 em { color: var(--red); font-style: italic; }
.hero-tag { display: flex; align-items: center; gap: 12px; font-family: var(--head); font-weight: 800; font-style: italic; font-size: clamp(1.15rem, 3.4vw, 1.5rem); letter-spacing: .2em; text-transform: uppercase; color: var(--red-text); margin-bottom: 14px; }
.hero-tag::before { content: ""; width: 34px; height: 4px; background: var(--red); border-radius: 2px; transform: skewX(-20deg); }
.hero-photo { position: relative; }
.hero-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 30% 40%; border-radius: 22px; }
.hero-photo .badge { position: absolute; left: -6px; bottom: 18px; background: var(--red); color: #fff; padding: 10px 16px 10px 14px; border-radius: 12px; font-family: var(--head); font-weight: 800; font-style: italic; text-transform: uppercase; line-height: 1; box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .6); }
.hero-photo .badge b { display: block; font-size: 2.4rem; }
.hero-photo .badge span { font-size: .95rem; letter-spacing: .08em; }
@media (min-width: 900px) {
  .hero { padding: 56px 0 88px; }
  .hero .wrap { grid-template-columns: 1.15fr .85fr; gap: 56px; }
  .hero-photo .badge { left: -22px; }
}

/* The three results */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 28px 0 8px; padding: 0; list-style: none; }
.stats li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 12px; text-align: center; }
.band .stats li { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .12); }
.stats b { display: block; font-family: var(--head); font-weight: 800; font-style: italic; font-size: clamp(2.2rem, 9vw, 3.6rem); line-height: 1; color: var(--red); }
.band .stats b { color: #FF5A66; }
.stats li:last-child b { font-size: clamp(2.6rem, 11vw, 4.4rem); }
.stats span { display: block; margin-top: 6px; font-weight: 600; font-size: .95rem; }
.stats-note { font-size: .92rem; }

/* Quote */
.quote { margin: 0; padding: 0 0 0 20px; border-left: 5px solid var(--red); }
.quote p { font-family: var(--head); font-weight: 700; font-style: italic; font-size: clamp(1.6rem, 4.6vw, 2.5rem); line-height: 1.15; margin-bottom: .4em; }
.quote footer { color: var(--muted); font-size: .98rem; }
.band .quote footer { color: var(--band-muted); }
.pull { font-family: var(--head); font-weight: 700; font-style: italic; font-size: clamp(1.35rem, 3.6vw, 1.8rem); line-height: 1.2; margin: 1.2em 0; padding-left: 16px; border-left: 4px solid var(--red); }
.pull cite { display: block; margin-top: 6px; font: 400 .92rem var(--body); color: var(--muted); }

/* Cards and grids */
.grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .grid.two { grid-template-columns: repeat(2, 1fr); } .grid.three { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .grid.three { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.card h3 { margin-bottom: .35em; }
.card p:last-child { margin-bottom: 0; }
a.card { display: block; color: var(--ink); text-decoration: none; transition: border-color .15s ease, transform .15s ease; }
a.card:hover { border-color: var(--red); transform: translateY(-2px); }
a.card .more { color: var(--red-text); font-weight: 600; }
.num { display: inline-grid; place-items: center; width: 40px; height: 40px; margin-bottom: 12px; border-radius: 50%; background: var(--red); color: #fff; font-family: var(--head); font-weight: 800; font-style: italic; font-size: 1.3rem; }

/* Course facts */
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 28px 0 0; padding: 0; list-style: none; }
@media (min-width: 760px) { .facts { grid-template-columns: repeat(4, 1fr); } }
.facts li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.facts b { display: block; font-family: var(--head); font-weight: 800; font-style: italic; font-size: 2.4rem; line-height: 1; color: var(--red); text-transform: uppercase; }
.facts span { display: block; margin-top: 4px; font-weight: 600; }

/* The six months */
.months { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 10px; }
@media (min-width: 760px) { .months { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1080px) { .months { grid-template-columns: repeat(6, 1fr); } }
.months li { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 16px; }
.months li b { display: block; font-family: var(--head); font-weight: 800; font-style: italic; text-transform: uppercase; font-size: 1.05rem; letter-spacing: .08em; color: var(--red-text); }
.months li strong { display: block; font-family: var(--head); font-weight: 800; font-size: 1.5rem; line-height: 1.1; margin: 4px 0 6px; }
.months li p { margin: 0; font-size: 1rem; color: var(--muted); }

/* Ticks */
.ticks { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 36px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .2em; width: 24px; height: 24px; border-radius: 50%; background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 16px no-repeat; }

/* Story */
.story { display: grid; gap: 28px; align-items: start; }
@media (min-width: 900px) { .story { grid-template-columns: 1fr 1fr; gap: 56px; } .story.flip > :first-child { order: 2; } }
.chapter { font-family: var(--head); font-weight: 800; font-style: italic; font-size: 1rem; letter-spacing: .2em; text-transform: uppercase; color: var(--red-text); display: block; margin-bottom: 8px; }
figure { margin: 0; }
figure img { border-radius: 16px; width: 100%; }
figcaption { margin-top: 10px; font-size: .95rem; line-height: 1.45; color: var(--muted); }
.band figcaption { color: var(--band-muted); }
figcaption b { color: var(--ink); }
.band figcaption b { color: var(--band-ink); }
.big-photo img { max-height: 86vh; object-fit: cover; }
.doc img { background: #fff; padding: 6px; border: 1px solid var(--line); }
.doc.tall img { max-height: 640px; width: auto; margin: 0 auto; }
.phone-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* Photo grids (the small 2016 photos) */
.photos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 24px 0 0; padding: 0; list-style: none; }
@media (min-width: 640px) { .photos { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .photos { grid-template-columns: repeat(4, 1fr); gap: 12px; } }
.photos img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; }
.photos figcaption { margin-top: 6px; font-size: .85rem; }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 13px; top: 6px; bottom: 6px; width: 3px; background: var(--line); border-radius: 2px; }
.timeline > li { position: relative; padding: 0 0 34px 48px; }
.timeline > li::before { content: ""; position: absolute; left: 4px; top: 6px; width: 21px; height: 21px; border-radius: 50%; background: var(--bg); border: 4px solid var(--red); }
.timeline > li.top::before { background: var(--red); }
.timeline .year { display: block; font-family: var(--head); font-weight: 800; font-style: italic; font-size: 1.7rem; line-height: 1; color: var(--red-text); margin-bottom: 6px; }
.timeline h3 { margin-bottom: .3em; }
.timeline .place { display: inline-block; margin-left: 4px; font-family: var(--head); font-weight: 800; font-style: italic; font-size: 2.2rem; color: var(--red); line-height: 1; }
.timeline figure { margin-top: 14px; max-width: 520px; }

/* News */
.news { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 760px) { .news { grid-template-columns: repeat(2, 1fr); } }
.news li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px; display: flex; flex-direction: column; }
.news .meta { font-size: .9rem; color: var(--muted); font-weight: 600; letter-spacing: .02em; margin-bottom: 6px; }
.news h3 { font-size: 1.45rem; font-style: italic; }
.news a.read { margin-top: auto; font-weight: 600; }
.clips { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 24px; }
@media (min-width: 760px) { .clips { grid-template-columns: repeat(3, 1fr); } }
.clips img { aspect-ratio: 3 / 4; object-fit: cover; object-position: top; background: #fff; border: 1px solid var(--line); }
.clips.small { grid-template-columns: repeat(3, 1fr); gap: 10px; }
.clips.small img { aspect-ratio: 11 / 20; }
.clips.small figcaption { font-size: .85rem; }

/* Notice: coaching, not therapy */
.note { background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--red); border-radius: var(--r); padding: 20px 22px; }
.note h2, .note h3 { font-size: 1.5rem; margin-bottom: .4em; font-style: normal; text-transform: none; }
.note p:last-child { margin-bottom: 0; }

/* FAQs */
.faqs { display: grid; gap: 10px; max-width: 48rem; }
.faqs details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 0 20px; }
.faqs summary { cursor: pointer; list-style: none; padding: 18px 32px 18px 0; position: relative; font-weight: 600; font-size: 1.1rem; }
.faqs summary::-webkit-details-marker { display: none; }
.faqs summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.6rem; font-weight: 400; color: var(--red-text); }
.faqs details[open] summary::after { content: "–"; }
.faqs details p { margin: 0 0 18px; color: var(--muted); }

/* Who I help */
.audiences { display: grid; gap: 16px; }
@media (min-width: 760px) { .audiences { grid-template-columns: repeat(2, 1fr); } }
.audience { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; scroll-margin-top: 90px; }
.audience h2 { font-size: 1.9rem; margin-bottom: .35em; }
.audience p:last-child { margin-bottom: 0; }
.icon { width: 44px; height: 44px; margin-bottom: 12px; color: var(--red); }

/* Split (photo + words) */
.split { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: .8fr 1.2fr; gap: 56px; } .split.rev { grid-template-columns: 1.2fr .8fr; } .split.rev > :first-child { order: 2; } }
.split figure img { aspect-ratio: 4 / 5; object-fit: cover; }
.portrait img { aspect-ratio: auto; max-height: 560px; width: auto; margin: 0 auto; }

/* Contact form */
.form { display: grid; gap: 16px; max-width: 36rem; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
@media (min-width: 640px) { .form { padding: 32px; } }
.form label span { display: block; font-weight: 600; margin-bottom: 6px; }
.form input, .form select, .form textarea { width: 100%; padding: 13px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--bg); color: var(--ink); font: 400 1.05rem/1.4 var(--body); }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px color-mix(in srgb, var(--red) 25%, transparent); }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form button { justify-self: start; }
.form-status { margin: 0; font-weight: 600; min-height: 1.2em; }
.form-status.err { color: var(--red-text); }
.thanks { font-family: var(--head); font-weight: 800; font-style: italic; font-size: 2rem; outline: none; }
.contact-grid { display: grid; gap: 32px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1.1fr .9fr; gap: 56px; } }

/* Big call to action */
.cta { text-align: center; }
.cta h2 { max-width: 18ch; margin-left: auto; margin-right: auto; }
.cta .lede { margin: 0 auto; }
.cta .actions { justify-content: center; }
.cta .mark { width: 120px; margin: 0 auto 18px; }

/* Footer */
.foot { background: var(--band); color: var(--band-muted); padding: 48px 0 calc(40px + env(safe-area-inset-bottom)); font-size: .98rem; }
.foot .wrap { display: grid; gap: 28px; }
@media (min-width: 900px) { .foot .wrap { grid-template-columns: 1.2fr 1fr; align-items: start; } }
.foot-brand svg { width: 260px; max-width: 100%; height: auto; }
.foot nav { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px 20px; }
.foot a { color: var(--band-ink); text-decoration: none; padding: 6px 0; display: inline-block; }
.foot a:hover { text-decoration: underline; }
.foot .fine { grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 18px; margin: 0; font-size: .88rem; }
.foot .fine a { display: inline; padding: 0; color: var(--band-muted); text-decoration: underline; }

/* The website chat (kit/chat.css) in CWC's colours. The window stays light in dark mode, as kit/chat.css draws it. */
.chat-launch, #site-chat { --bg: #171412; --bg2: #2A2320; --accent: #FF6B73; --accent-dark: #B3121F; --paper: #FBF6EF; --ink: #171412; --head: "Barlow Condensed", system-ui, sans-serif; --body: "Barlow", system-ui, sans-serif; --r: 16px; }
.chat-launch { border-color: rgba(255, 255, 255, .22); }
@media (prefers-color-scheme: dark) { .chat-launch { --bg: #D7192A; } .chat-launch .chat-face { color: #171412; background: #fff; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } html { scroll-behavior: auto; } }
@media print { .top, .foot, .chat-launch, #site-chat { display: none !important; } }
.months + h3 { margin-top: 1.4em; }
