/* derekelder.com
   Brand tokens first. Change a colour here and it changes everywhere. */
:root {
  --black: #0e0e0e;
  --white: #ffffff;
  --cream: #f7f5f1;
  --gold: #9a7b3f;
  --gold-light: #c9a96e;
  /* A slightly deeper gold for small text and button backgrounds on light
     backgrounds. Brand gold on white is below the WCAG AA contrast minimum
     for small text (about 4:1). This one passes (about 5.2:1).
     To go back to the exact brand gold, set it to var(--gold). */
  --gold-deep: #85692f;
  --grey: #5a5a5a;
  --rule: #e2ddd6;

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;

  --header-h: 64px;
  --gutter: 20px;
  --wide: 1120px;
  --read: 680px;
}
@media (min-width: 768px) { :root { --header-h: 76px; --gutter: 32px; } }

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  background: var(--white);
  color: var(--black);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  padding-top: var(--header-h);
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
strong, b { font-weight: 600; }
button, input, select, textarea { font: inherit; color: inherit; }
ul[role="list"], .plain-list { list-style: none; padding: 0; }

/* Focus and skip link */
:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 3px; }
.section--black :focus-visible, .closing-band :focus-visible, .cookie-banner :focus-visible { outline-color: var(--gold-light); }
.skip-link {
  position: absolute; left: 12px; top: -100px; z-index: 200;
  background: var(--black); color: var(--white); padding: 12px 18px;
  font-size: 14px; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Type */
h1, h2, h3, .h1, .h2, .h3 { font-family: var(--serif); font-weight: 500; line-height: 1.2; color: var(--black); }
h1, .h1 { font-size: clamp(34px, 6vw, 54px); letter-spacing: -0.005em; }
h2, .h2 { font-size: clamp(27px, 4vw, 38px); }
h3, .h3 { font-size: clamp(21px, 2.4vw, 24px); }
p, li { color: var(--grey); }
.lead { font-size: clamp(18px, 2.2vw, 20px); line-height: 1.7; }
.eyebrow {
  display: block; font-family: var(--sans); font-size: 11px; font-weight: 600;
  letter-spacing: 0.26em; text-transform: uppercase; color: var(--gold-deep);
  margin-bottom: 18px;
}
.small { font-size: 14px; line-height: 1.7; }

/* Prose: running text at a comfortable reading width */
.prose { max-width: var(--read); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 2.2em; }
.prose h3 { margin-top: 1.8em; }
.prose h2 + *, .prose h3 + * { margin-top: 0.7em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li + li { margin-top: 0.4em; }
.prose a:not(.btn) { color: var(--gold-deep); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:not(.btn):hover { color: var(--black); }
.prose blockquote { border-left: 3px solid var(--gold); padding-left: 24px; }
.prose img { margin-block: 2em; }
.center { text-align: center; margin-inline: auto; }

/* Layout */
.container { width: 100%; max-width: calc(var(--wide) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.container--read { max-width: calc(var(--read) + var(--gutter) * 2); }
.section { padding-block: 64px; }
@media (min-width: 768px) { .section { padding-block: 96px; } }
.section--white { background: var(--white); }
.section--cream { background: var(--cream); border-block: 1px solid var(--rule); }
.section--cream + .section--cream { border-top: 0; }
.section--black { background: var(--black); }
.section--black h1, .section--black h2, .section--black h3 { color: var(--white); }
.section--black p, .section--black li { color: rgba(255, 255, 255, 0.78); }
.section--black .eyebrow { color: var(--gold-light); }
.section--black .prose a:not(.btn), .section--black .text-link { color: var(--gold-light); }
.section--black .prose a:not(.btn):hover, .section--black .text-link:hover { color: var(--white); }
.section-head { max-width: var(--read); margin-bottom: 40px; }
.section-head.center { text-align: center; }
.section-head h2 + p { margin-top: 16px; }
.stack > * + * { margin-top: 24px; }
.grid { display: grid; gap: 20px; }
@media (min-width: 768px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .grid--3 { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}
.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1.15fr 0.85fr; gap: 72px; }
  .split--flip { grid-template-columns: 0.85fr 1.15fr; }
}

/* Buttons and links */
.btn {
  display: inline-block; background: var(--gold-deep); color: var(--white);
  font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; text-decoration: none; text-align: center;
  padding: 17px 30px; border: 1px solid var(--gold-deep); border-radius: 0; cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.btn:hover { background: var(--black); border-color: var(--black); }
.section--black .btn:hover, .closing-band .btn:hover, .cookie-banner .btn:hover { background: var(--white); border-color: var(--white); color: var(--black); }
.btn--small { padding: 12px 20px; font-size: 11px; }
.btn--outline { background: transparent; color: var(--black); border-color: var(--black); }
.btn--outline:hover { background: var(--black); color: var(--white); }
.text-link {
  display: inline-block; color: var(--gold-deep); font-size: 13px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none;
  border-bottom: 1px solid currentColor; padding-bottom: 2px;
}
.text-link:hover { color: var(--black); }
.link-row { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; margin-top: 32px; }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  background: var(--white); border-bottom: 1px solid var(--rule);
}
.site-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: block; flex-shrink: 0; text-decoration: none; }
.logo img { height: 34px; width: auto; }
@media (min-width: 768px) { .logo img { height: 40px; } }

.desktop-nav { display: none; }
.menu-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin-right: -10px; background: none; border: 0; cursor: pointer;
}
.menu-toggle svg { width: 26px; height: 26px; }
@media (min-width: 1280px) {
  .desktop-nav { display: block; }
  .menu-toggle { display: none; }
}
.nav-list { display: flex; align-items: center; gap: 26px; list-style: none; padding: 0; }
.nav-list > li { position: relative; }
.nav-link, .nav-button {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 0;
  font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  text-decoration: none; color: var(--black); background: none; border: 0; cursor: pointer;
  border-bottom: 1px solid transparent;
}
.nav-link:hover, .nav-button:hover { color: var(--gold-deep); }
.nav-link[aria-current="page"], .nav-button.is-current { color: var(--gold-deep); border-bottom-color: var(--gold-deep); }
.nav-button svg { width: 10px; height: 10px; transition: transform 0.2s; }
.nav-button[aria-expanded="true"] svg { transform: rotate(180deg); }
.dropdown {
  position: absolute; top: 100%; left: -24px; min-width: 300px; padding: 10px 0;
  background: var(--white); border: 1px solid var(--rule); border-top: 2px solid var(--gold);
  box-shadow: 0 18px 40px rgba(14, 14, 14, 0.08); list-style: none;
  visibility: hidden; opacity: 0; transform: translateY(6px);
  transition: opacity 0.18s, transform 0.18s, visibility 0s linear 0.18s;
}
.has-dropdown.is-open .dropdown { visibility: visible; opacity: 1; transform: none; transition: opacity 0.18s, transform 0.18s; }
.dropdown a {
  display: block; padding: 11px 24px; font-size: 15px; font-weight: 300;
  color: var(--black); text-decoration: none;
}
.dropdown a:hover, .dropdown a:focus-visible { background: var(--cream); color: var(--gold-deep); }
.dropdown a[aria-current="page"] { color: var(--gold-deep); font-weight: 600; }
.nav-cta { margin-left: 6px; }

/* Side panel (phone and tablet) */
.panel-overlay {
  position: fixed; inset: 0; z-index: 150; background: rgba(14, 14, 14, 0.5);
  opacity: 0; visibility: hidden; transition: opacity 0.25s, visibility 0s linear 0.25s;
}
.mobile-panel {
  position: fixed; top: 0; right: 0; z-index: 160; height: 100%; height: 100dvh;
  width: min(380px, 88vw); background: var(--white); display: flex; flex-direction: column;
  transform: translateX(100%); visibility: hidden;
  transition: transform 0.28s ease, visibility 0s linear 0.28s;
}
.menu-open .panel-overlay { opacity: 1; visibility: visible; transition: opacity 0.25s; }
.menu-open .mobile-panel { transform: none; visibility: visible; transition: transform 0.28s ease; }
.menu-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
  .mobile-panel, .panel-overlay, .dropdown { transition: none !important; }
}
.panel-head {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h); padding-inline: var(--gutter); border-bottom: 1px solid var(--rule); flex-shrink: 0;
}
.panel-head img { height: 30px; width: auto; }
.panel-close { width: 44px; height: 44px; margin-right: -10px; background: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.panel-close svg { width: 22px; height: 22px; }
.panel-body { flex: 1; overflow-y: auto; padding: 12px var(--gutter) 24px; }
.panel-list { list-style: none; padding: 0; }
.panel-list > li { border-bottom: 1px solid var(--rule); }
.panel-list a, .panel-list .panel-sub-toggle {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  padding: 16px 0; font-family: var(--serif); font-size: 21px; font-weight: 500;
  text-decoration: none; color: var(--black); background: none; border: 0; cursor: pointer; text-align: left;
}
.panel-list a[aria-current="page"], .panel-sub-toggle.is-current { color: var(--gold-deep); }
.panel-sub-toggle svg { width: 14px; height: 14px; transition: transform 0.2s; }
.panel-sub-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.panel-sub { list-style: none; padding: 0 0 12px 16px; display: none; border-left: 2px solid var(--gold); margin-bottom: 14px; }
.panel-sub.is-open { display: block; }
.panel-sub a { font-family: var(--sans); font-size: 16px; font-weight: 300; padding: 10px 0; }
.panel-sub a[aria-current="page"] { font-weight: 600; }
.panel-foot { padding: 20px var(--gutter) 28px; border-top: 1px solid var(--rule); flex-shrink: 0; }
.panel-foot .btn { display: block; width: 100%; }

/* Breadcrumbs */
.breadcrumbs { background: var(--white); border-bottom: 1px solid var(--rule); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; list-style: none; padding: 14px 0; font-size: 13px; }
.breadcrumbs li { color: var(--grey); }
.breadcrumbs li + li::before { content: "›"; margin: 0 10px; color: var(--gold); }
.breadcrumbs a { color: var(--grey); text-decoration: none; }
.breadcrumbs a:hover { color: var(--gold-deep); text-decoration: underline; }
.breadcrumbs [aria-current="page"] { color: var(--black); font-weight: 600; }

/* Page hero for inner pages */
.page-hero { padding-block: 56px 48px; background: var(--cream); border-bottom: 1px solid var(--rule); }
@media (min-width: 768px) { .page-hero { padding-block: 88px 72px; } }
.page-hero h1 { max-width: 820px; }
.page-hero .lead { max-width: var(--read); margin-top: 22px; }

/* Home hero */
.home-hero { padding-block: 48px 64px; }
@media (min-width: 768px) { .home-hero { padding-block: 88px 96px; } }
.home-hero .split { grid-template-columns: 1fr; }
@media (min-width: 900px) { .home-hero .split { grid-template-columns: 1.25fr 0.75fr; } }
.home-hero h1 { font-size: clamp(36px, 5.6vw, 56px); }
.home-hero h1 .title-line { display: block; color: var(--gold-deep); }
.home-hero .lead { margin-top: 24px; max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 30px; margin-top: 36px; }
.photo-frame { position: relative; background: var(--cream); border: 1px solid var(--rule); padding: 12px; max-width: 420px; margin-inline: auto; width: 100%; }
.photo-frame img { width: 100%; height: auto; }
.photo-tag {
  position: absolute; bottom: -14px; left: 28px; background: var(--black); color: var(--white);
  font-size: 10px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; padding: 10px 18px;
}
.photo-tag span { color: var(--gold-light); }
.photo { width: 100%; height: auto; }
figure figcaption { font-size: 14px; color: var(--grey); margin-top: 12px; }

/* Cards */
.card { background: var(--white); border: 1px solid var(--rule); padding: 32px 28px; display: flex; flex-direction: column; }
.card h3 { margin-bottom: 12px; }
.card p { font-size: 16px; }
.card .text-link { margin-top: auto; padding-top: 0; align-self: flex-start; }
.card > p + .text-link { margin-top: 24px; }
/* Home: wealth, health, relationships. One joined panel (gold top edge, like the menu dropdown) rather than separate cards, so it reads differently from "How I work" */
.areas-of-life { list-style: none; margin: 48px 0 0; padding: 0; display: grid; background: var(--white); border: 1px solid var(--rule); border-top: 2px solid var(--gold); }
.areas-of-life li { padding: 32px 28px; }
.areas-of-life li + li { border-top: 1px solid var(--rule); }
.areas-of-life h3 { margin-bottom: 12px; }
.areas-of-life p { font-size: inherit; }
.areas-close { margin-top: 48px; }
@media (min-width: 768px) {
  .areas-of-life { grid-template-columns: repeat(3, 1fr); }
  .areas-of-life li { padding: 40px 32px; }
  .areas-of-life li + li { border-top: 0; border-left: 1px solid var(--rule); }
}
/* Home: "How I work". Three overlapping circles with The Rewire Code where they meet. Hover, focus or tap a part to light it up */
.method { display: grid; gap: 32px; align-items: center; margin-top: 48px; }
@media (min-width: 900px) { .method { grid-template-columns: 1fr 1fr; gap: 72px; } }
.method-venn { width: 100%; max-width: 420px; margin-inline: auto; display: block; overflow: visible; }
.venn-circle { fill: var(--gold); fill-opacity: 0.1; stroke: var(--gold); stroke-width: 1.5; transition: fill-opacity 0.3s ease, stroke-width 0.3s ease; cursor: pointer; }
.venn-label { font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; fill: var(--gold-deep); transition: opacity 0.3s ease; pointer-events: none; }
.venn-centre-bg { fill: var(--white); stroke: var(--gold); stroke-width: 1; pointer-events: none; }
.venn-centre { font-family: var(--serif); font-size: 15px; fill: var(--black); pointer-events: none; }
.method-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.method-list li { padding: 24px 0 24px 20px; border-bottom: 1px solid var(--rule); border-left: 2px solid transparent; cursor: pointer; transition: border-color 0.3s ease, opacity 0.3s ease; outline-offset: -2px; }
.method-list h3 { margin-bottom: 8px; }
.method-list p { font-size: 16px; }
.method[data-active] .venn-circle { fill-opacity: 0.05; }
.method[data-active="hypnosis"] .venn-circle[data-part="hypnosis"],
.method[data-active="nlp"] .venn-circle[data-part="nlp"],
.method[data-active="coaching"] .venn-circle[data-part="coaching"] { fill-opacity: 0.32; stroke-width: 2.5; }
.method[data-active] .venn-label { opacity: 0.4; }
.method[data-active="hypnosis"] .venn-label[data-part="hypnosis"],
.method[data-active="nlp"] .venn-label[data-part="nlp"],
.method[data-active="coaching"] .venn-label[data-part="coaching"] { opacity: 1; }
.method[data-active] .method-list li { opacity: 0.5; }
.method[data-active="hypnosis"] .method-list li[data-part="hypnosis"],
.method[data-active="nlp"] .method-list li[data-part="nlp"],
.method[data-active="coaching"] .method-list li[data-part="coaching"] { opacity: 1; border-left-color: var(--gold); }
@media (prefers-reduced-motion: reduce) { .venn-circle, .venn-label, .method-list li { transition: none; } }
.card-label { font-size: 11px; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 14px; }
.section--black .card { background: transparent; border-color: rgba(255, 255, 255, 0.16); }

/* Quote cards */
.quote-card { background: var(--white); border-left: 3px solid var(--gold); padding: 28px 28px 26px; display: flex; flex-direction: column; gap: 20px; }
.section--white .quote-card { background: var(--cream); }
.quote-card blockquote p { color: var(--black); font-size: 16px; line-height: 1.8; }
.quote-card figcaption { display: flex; align-items: center; gap: 14px; margin-top: auto; }
.quote-card__photo { width: 52px; height: 52px; object-fit: cover; flex-shrink: 0; }
.quote-card__name { display: block; color: var(--black); font-weight: 600; font-size: 15px; }
.quote-card__role { display: block; color: var(--gold-deep); font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.quotes-masonry { columns: 1; column-gap: 24px; }
.quotes-masonry .quote-card { break-inside: avoid; margin-bottom: 24px; }
@media (min-width: 768px) { .quotes-masonry { columns: 2; } }
.note { font-size: 14px; color: var(--grey); margin-top: 8px; }

/* Pull quote */
.pull-quote { max-width: 760px; margin-inline: auto; text-align: center; }
.pull-quote p { font-family: var(--serif); font-size: clamp(22px, 3.2vw, 30px); line-height: 1.45; color: var(--white); }
.pull-quote::before { content: ""; display: block; width: 48px; height: 1px; background: var(--gold-light); margin: 0 auto 28px; }

/* Lists */
.check-list { list-style: none; padding: 0; }
.check-list li { position: relative; padding-left: 28px; }
.check-list li + li { margin-top: 12px; }
.check-list li::before { content: ""; position: absolute; left: 0; top: 0.75em; width: 12px; height: 1px; background: var(--gold); }
.detail-list { list-style: none; padding: 0; border-top: 1px solid var(--rule); }
.detail-list li { padding: 22px 0; border-bottom: 1px solid var(--rule); }
.detail-list strong { display: block; color: var(--black); font-weight: 600; margin-bottom: 4px; }
.steps { list-style: none; padding: 0; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding-left: 52px; }
.steps li + li { margin-top: 22px; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0; width: 34px; height: 34px;
  border: 1px solid var(--gold); color: var(--gold-deep); font-family: var(--serif); font-size: 17px;
  display: flex; align-items: center; justify-content: center; line-height: 1;
}

/* The four phases */
.phases { list-style: none; padding: 0; display: grid; gap: 20px; }
@media (min-width: 768px) { .phases { grid-template-columns: repeat(2, 1fr); gap: 24px; } }
.phase { background: var(--white); border: 1px solid var(--rule); padding: 32px 28px; }
.phase-num { font-family: var(--serif); font-size: 40px; line-height: 1; color: var(--gold); display: block; margin-bottom: 14px; }
.phase h3 { margin-bottom: 12px; }
.phase p { font-size: 16px; }

/* Diagram */
.diagram { max-width: 560px; margin: 40px auto 0; }

/* Speaking logos: a slow sliding row, original colours, always on white */
.logo-marquee {
  background: var(--white); overflow: hidden; padding-block: 8px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.logo-track { display: flex; width: max-content; animation: logo-slide 45s linear infinite; }
.logo-marquee:hover .logo-track, .logo-marquee:focus-within .logo-track { animation-play-state: paused; }
.logo-set { display: flex; align-items: center; gap: 72px; padding-right: 72px; list-style: none; margin: 0; padding-left: 0; }
.logo-set li { flex-shrink: 0; }
.logo-set img { height: 56px; width: auto; }
@media (min-width: 768px) {
  .logo-set { gap: 96px; padding-right: 96px; }
  .logo-set img { height: 72px; }
}
@keyframes logo-slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
/* Reduced motion: one still, centred row that wraps */
@media (prefers-reduced-motion: reduce) {
  .logo-marquee { -webkit-mask-image: none; mask-image: none; padding-inline: var(--gutter); }
  .logo-track { animation: none; width: auto; justify-content: center; }
  .logo-set { flex-wrap: wrap; justify-content: center; gap: 32px 56px; padding-right: 0; }
  .logo-set[aria-hidden="true"] { display: none; }
}

/* Accordion */
.faq-group + .faq-group { margin-top: 56px; }
.faq-group h2 { font-size: 13px; font-family: var(--sans); font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 8px; }
.faq-item { border-bottom: 1px solid var(--rule); }
.faq-item:first-of-type { border-top: 1px solid var(--rule); }
.faq-item h3 { font-family: var(--sans); font-size: 17px; font-weight: 600; line-height: 1.5; }
.faq-q {
  display: flex; width: 100%; justify-content: space-between; align-items: flex-start; gap: 20px;
  padding: 20px 0; background: none; border: 0; cursor: pointer; text-align: left; color: var(--black); font-weight: 600;
}
.faq-q:hover { color: var(--gold-deep); }
.faq-icon { position: relative; flex-shrink: 0; width: 14px; height: 14px; margin-top: 6px; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; background: var(--gold); left: 0; top: 6px; width: 14px; height: 2px; transition: transform 0.2s; }
.faq-icon::after { transform: rotate(90deg); }
.faq-q[aria-expanded="true"] .faq-icon::after { transform: rotate(0); }
.faq-a { padding: 0 0 22px; max-width: var(--read); }
.faq-a a { color: var(--gold-deep); }
.js .faq-a[data-collapsed] { display: none; }

/* Forms */
.form { display: grid; gap: 22px; max-width: var(--read); }
@media (min-width: 640px) { .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; } }
.form-row { display: grid; gap: 22px; }
.field label, .field .label { display: block; font-size: 14px; font-weight: 600; color: var(--black); margin-bottom: 8px; }
.field .optional { font-weight: 300; color: var(--grey); }
.field input, .field select, .field textarea {
  display: block; width: 100%; padding: 14px 16px; font-size: 16px; font-weight: 300;
  background: var(--white); border: 1px solid #cfc8bd; border-radius: 0; color: var(--black);
}
.field textarea { min-height: 140px; resize: vertical; line-height: 1.6; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2385692f' stroke-width='1.5' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 44px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--gold-deep); outline-offset: 0; border-color: var(--gold-deep); }
.field-check { display: flex; gap: 12px; align-items: flex-start; }
.field-check input { width: 20px; height: 20px; margin-top: 3px; flex-shrink: 0; accent-color: var(--gold-deep); }
.field-check label { font-size: 15px; color: var(--grey); }
.field-check a { color: var(--gold-deep); }
.form .btn { justify-self: start; }
.form-note { font-size: 14px; color: var(--grey); }
/* Honeypot: hidden by position, never by the hidden attribute (that breaks Netlify form detection) */
.hp-field { position: absolute !important; left: -10000px !important; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* Contact routes */
.route-card .btn, .route-card .text-link { margin-top: 24px; align-self: flex-start; }

/* Article cards and pages */
.article-card { background: var(--white); border: 1px solid var(--rule); padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.article-card h2, .article-card h3 { font-size: 22px; }
.article-card h2 a, .article-card h3 a { text-decoration: none; }
.article-card h2 a:hover, .article-card h3 a:hover { color: var(--gold-deep); }
.article-meta { font-size: 13px; color: var(--grey); letter-spacing: 0.04em; }
.article-meta span + span::before { content: "·"; margin: 0 8px; color: var(--gold); }
.article-list { display: grid; gap: 20px; }
.article-header .article-meta { margin-top: 18px; }
.author-box { display: flex; gap: 20px; align-items: flex-start; background: var(--cream); border-left: 3px solid var(--gold); padding: 24px; margin-top: 56px; }
.author-box img { width: 72px; height: 72px; object-fit: cover; flex-shrink: 0; }
.author-box h2 { font-size: 20px; margin-bottom: 6px; }
.author-box p { font-size: 15px; }
.empty-state { border: 1px dashed var(--rule); padding: 32px; text-align: center; background: var(--white); }

/* Closing band */
.closing-band { background: var(--black); padding-block: 64px; text-align: center; }
.closing-band p { color: rgba(255, 255, 255, 0.82); font-size: 18px; max-width: 560px; margin: 0 auto 28px; }
.closing-band strong { display: block; font-family: var(--serif); font-weight: 500; font-size: clamp(24px, 3.5vw, 30px); color: var(--white); margin-bottom: 10px; }

/* Footer */
.site-footer { background: var(--cream); border-top: 1px solid var(--rule); padding-block: 56px 32px; font-size: 15px; }
.footer-top { display: grid; gap: 40px; }
@media (min-width: 900px) { .footer-top { grid-template-columns: 1.2fr 2fr; gap: 64px; } }
.footer-brand img { height: 40px; width: auto; }
.footer-title { margin-top: 16px; font-family: var(--serif); font-size: 18px; color: var(--black); }
.footer-email { display: inline-block; margin-top: 14px; color: var(--gold-deep); text-underline-offset: 3px; }
.footer-cols { display: grid; gap: 32px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .footer-cols { grid-template-columns: repeat(2, minmax(0, 260px)); } }
.footer-col h2 { font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 14px; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col li + li { margin-top: 8px; }
.footer-col a { color: var(--black); text-decoration: none; }
.footer-col a:hover, .footer-col a[aria-current="page"] { color: var(--gold-deep); text-decoration: underline; text-underline-offset: 3px; }
.social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; list-style: none; padding: 0; }
.social a { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border: 1px solid var(--rule); background: var(--white); color: var(--black); }
.social a:hover { border-color: var(--gold); color: var(--gold-deep); }
.social svg { width: 18px; height: 18px; }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; font-size: 13px; color: var(--grey); }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 6px 20px; list-style: none; padding: 0; }
.footer-bottom a, .footer-bottom button { color: var(--grey); background: none; border: 0; padding: 0; cursor: pointer; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom p { color: var(--grey); }

/* Cookie banner */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 120; max-width: 440px;
  background: var(--black); color: var(--white); padding: 22px 22px 20px; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
  display: none;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner p { color: rgba(255, 255, 255, 0.82); font-size: 14px; line-height: 1.6; }
.cookie-banner a { color: var(--gold-light); }
.cookie-actions { display: flex; gap: 10px; margin-top: 16px; }
.cookie-banner .btn--outline { color: var(--white); border-color: rgba(255, 255, 255, 0.5); }
.cookie-banner .btn--outline:hover { background: var(--white); color: var(--black); }

/* Placeholders Derek still has to fill */
.confirm {
  display: block; margin-top: 10px; padding: 10px 14px; font-size: 13px; line-height: 1.55;
  font-family: var(--sans); font-weight: 300; letter-spacing: 0; text-transform: none;
  background: #fff6d6; color: #5c4400; border: 1px dashed #b38b00;
}
.confirm strong { font-weight: 600; }
.placeholder-box {
  display: flex; align-items: center; justify-content: center; text-align: center;
  background: repeating-linear-gradient(45deg, var(--cream), var(--cream) 10px, #efebe4 10px, #efebe4 20px);
  border: 1px dashed var(--gold); color: var(--grey); font-size: 14px; padding: 24px; min-height: 200px;
}

/* Legal pages */
.legal-note { background: #fff6d6; border: 1px dashed #b38b00; padding: 20px 24px; margin-bottom: 40px; }
.legal-note h2 { font-family: var(--sans); font-size: 14px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: #5c4400; margin: 0 0 8px; }
.legal-note li, .legal-note p { color: #5c4400; font-size: 15px; }

/* Disclaimer */
.disclaimer { font-size: 14px; color: var(--grey); max-width: var(--read); border-top: 1px solid var(--rule); padding-top: 20px; }

/* Print */
@media print {
  .site-header, .mobile-panel, .panel-overlay, .closing-band, .cookie-banner, .site-footer, .breadcrumbs { display: none !important; }
  body { padding-top: 0; }
}

/* Small extras */
main:focus { outline: none; }
.steps a, .detail-list a, .check-list a { color: var(--gold-deep); text-underline-offset: 3px; }
.panel-sub-toggle svg { width: 14px; height: 10px; }
.panel-foot .btn { letter-spacing: 0.12em; }
@media (max-width: 899px) { .home-hero .photo-frame, .page-hero .photo-frame { max-width: 340px; } }
.card p a, .route-card p a { color: var(--gold-deep); text-underline-offset: 3px; }
.prose, .legal-note, .confirm { overflow-wrap: anywhere; }
/* Speaking: organisation names as text (used while logos are not shown) */
.org-names { list-style: none; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 40px; max-width: 900px; margin: 0 auto; text-align: center; }
.org-names li { font-family: var(--serif); font-size: clamp(18px, 2.2vw, 22px); color: var(--black); }

/* Logo: DEREK ELDER (vector). Sized by cap height. */
.logo img.logo-name, .panel-head img.logo-name { height: 17px; width: auto; }
@media (min-width: 768px) { .logo img.logo-name { height: 20px; } }
.footer-brand img.logo-name { height: 20px; width: auto; }

/* About: the story runs as one piece, with the photo beside it */
.story { display: grid; gap: 40px; }
.story-photo { max-width: 380px; margin: 0; }
@media (max-width: 899px) { .story-photo { order: -1; } }
@media (min-width: 900px) {
  .story { grid-template-columns: minmax(0, var(--read)) minmax(0, 380px); gap: 72px; align-items: start; justify-content: space-between; }
  .story-photo { position: sticky; top: calc(var(--header-h) + 32px); }
}

/* The Rewire Code: filter graphic */
.filter-graphic { max-width: 520px; margin: 40px auto 0; }
.filter-graphic svg { width: 100%; height: auto; }
.filter-graphic figcaption { text-align: center; }
.fg-zone { font-family: var(--serif); font-size: 21px; fill: var(--black); }
.fg-light { fill: var(--white); }
.fg-note { font-family: var(--sans); font-size: 12.5px; font-weight: 300; fill: var(--grey); }
.fg-muted { fill: rgba(255, 255, 255, 0.72); }
.fg-filter { font-family: var(--sans); font-size: 12.5px; font-weight: 600; fill: var(--gold-light); }
.fg-item { font-family: var(--sans); font-size: 12.5px; fill: var(--white); text-anchor: middle; }
.fg-chip-text { font-family: var(--sans); font-size: 12px; font-weight: 600; fill: var(--grey); text-anchor: middle; }
.fg-rewire-text { fill: var(--black); }
/* One-time animation, only when site.js adds .fg-animate (never with reduced motion) */
.fg-animate .fg-drop, .fg-animate .fg-rewire, .fg-animate .fg-trail { opacity: 0; }
.fg-animate.fg-play .fg-drop { animation: fg-drop 0.5s cubic-bezier(.3, 1.4, .5, 1) forwards; }
.fg-animate.fg-play .fg-d1 { animation-delay: 0.1s; }
.fg-animate.fg-play .fg-d2 { animation-delay: 0.25s; }
.fg-animate.fg-play .fg-d3 { animation-delay: 0.4s; }
.fg-animate.fg-play .fg-trail { animation: fg-fade 0.4s ease forwards 0.9s; }
.fg-animate.fg-play .fg-rewire { animation: fg-through 0.55s ease-in-out forwards 0.95s; }
@keyframes fg-drop { from { opacity: 0; transform: translateY(-90px); } to { opacity: 1; transform: none; } }
@keyframes fg-fade { to { opacity: 1; } }
@keyframes fg-through { 0% { opacity: 0; transform: translateY(-130px); } 20% { opacity: 1; } 100% { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .fg-animate .fg-drop, .fg-animate .fg-rewire, .fg-animate .fg-trail { opacity: 1; animation: none !important; }
}
.tools .card p + p { margin-top: 14px; }

/* Testimonials: round client photos and stars */
.quote-card__photo { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold-light); }
.stars { display: flex; gap: 3px; }
.stars svg { width: 16px; height: 16px; fill: var(--gold-light); }

/* Speaking: areas I cover */
.areas-heading { font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold-deep); margin: 8px 0 20px; }
.area-title { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.area-title h4 { font-family: var(--serif); font-weight: 500; font-size: 21px; line-height: 1.25; color: var(--black); }
.area-icon { width: 34px; height: 34px; flex-shrink: 0; color: var(--gold); }
.formats { margin-top: 32px; }
.formats strong { color: var(--black); }

/* Desktop menu: keep each label on one line */
.nav-link, .nav-button { white-space: nowrap; letter-spacing: 0.08em; }
.nav-list { gap: 22px; }
.desktop-nav { flex-shrink: 0; }
.site-header .container { max-width: calc(1280px + var(--gutter) * 2); }

/* Full-width photo hero (Home and Speaking, when heroStyle is "photo") */
.photo-hero { position: relative; background: var(--black); color: var(--white); overflow: hidden; }
.photo-hero__bg { display: block; position: relative; height: 62vh; min-height: 340px; max-height: 520px; }
.photo-hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos-phone, center 25%); }
.photo-hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,14,14,0) 35%, rgba(14,14,14,0.9) 75%, #0e0e0e 100%); }
.photo-hero__content { position: relative; margin-top: -72px; padding-bottom: 56px; }
.photo-hero h1 { color: var(--white); }
.photo-hero .lead { color: rgba(255, 255, 255, 0.86); margin-top: 20px; max-width: 540px; }
.photo-hero .text-link { color: var(--gold-light); }
.photo-hero .text-link:hover { color: var(--white); }
.photo-hero .btn:hover { background: var(--white); border-color: var(--white); color: var(--black); }
.photo-hero :focus-visible { outline-color: var(--gold-light); }
@media (min-width: 900px) {
  .photo-hero { min-height: 600px; display: flex; align-items: center; }
  .photo-hero__bg { position: absolute; top: 0; bottom: 0; right: 0; left: 42%; height: auto; max-height: none; }
  .photo-hero__bg img { object-position: var(--pos-wide, center 25%); }
  .photo-hero__bg::after { background: linear-gradient(90deg, #0e0e0e 0%, rgba(14,14,14,0.75) 22%, rgba(14,14,14,0.25) 55%, rgba(14,14,14,0.15) 100%); }
  .photo-hero__content { margin-top: 0; padding-block: 96px; }
  .photo-hero__text { max-width: 560px; }
}
.photo-hero .eyebrow { color: var(--gold-light); }
/* Speaking: photo beside "Tailored to your audience" */
.tailored { margin-bottom: 48px; }
.tailored-photo { max-width: 420px; }
@media (min-width: 900px) { .tailored-photo { justify-self: end; } }
.story-inline { max-width: 520px; margin: 2em 0; }

/* Home: "Why nothing has fully clicked" */
.read-block { max-width: var(--read); }
.areas-of-life { margin-top: 40px; }
.areas-of-life .card h3 { font-weight: 600; }

/* Home: the statement in its own black band */
.statement-band { background: var(--black); padding-block: 72px; }
@media (min-width: 768px) { .statement-band { padding-block: 104px; } }
.statement {
  font-family: var(--serif); font-size: clamp(26px, 3.8vw, 38px); line-height: 1.3;
  color: var(--white); max-width: 820px; margin: 0 auto; text-align: center;
}
.statement-line { display: block; width: 48px; height: 1px; background: var(--gold-light); margin: 0 auto 28px; }

/* Home: Meet Derek Elder */
.meet-split { align-items: center; }
.meet-photo { max-width: 420px; }
.subheading { font-family: var(--serif); font-size: clamp(19px, 2.2vw, 22px); color: var(--gold-deep); margin-top: 10px; }

/* =====================================================================
   Motion. Everything here is progressive: without JavaScript, or with
   "reduced motion" switched on, the page shows exactly as before.
   site.js only hides things that are still below the screen.
   Every animation is under 0.6 seconds.
   ===================================================================== */

/* Sections and items fade and rise into place, once each */
.reveal { opacity: 0; transform: translateY(18px); }
.reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(.2, .7, .2, 1);
  transition-delay: var(--d, 0ms);
}

/* Header shrinks slightly once scrolling starts */
.site-header { transition: height 0.25s ease, box-shadow 0.25s ease; }
.site-header .logo img.logo-name { transition: height 0.25s ease; }
.site-header.is-scrolled { height: calc(var(--header-h) - 10px); box-shadow: 0 6px 24px rgba(14, 14, 14, 0.06); }
.site-header.is-scrolled .logo img.logo-name { height: 15px; }
@media (min-width: 768px) { .site-header.is-scrolled .logo img.logo-name { height: 17px; } }

/* Hover and tap states */
.btn { transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s ease, box-shadow 0.2s ease; }
.btn:active { transform: scale(0.98); }
.card, .quote-card, .article-card { transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease; }
@media (hover: hover) {
  .btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(14, 14, 14, 0.14); }
  .card:hover, .quote-card:hover, .article-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(14, 14, 14, 0.08); border-color: var(--gold-light); }
}
.card:active, .quote-card:active, .article-card:active { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(14, 14, 14, 0.06); }

/* The Rewire Code: the four phases as a vertical timeline */
.timeline { position: relative; max-width: 760px; }
.timeline .phases { display: block; }
.timeline .phase { position: relative; background: none; border: 0; padding: 0 0 48px 84px; }
.timeline .phase:last-child { padding-bottom: 0; }
.timeline .phase-num {
  position: absolute; left: 0; top: 0; width: 56px; height: 56px; margin: 0;
  display: flex; align-items: center; justify-content: center; font-size: 22px;
  background: var(--gold); color: var(--white); border: 1px solid var(--gold);
  transition: background-color 0.4s ease, color 0.4s ease, box-shadow 0.4s ease;
}
.timeline .phase h3 { padding-top: 12px; }
.timeline-line { position: absolute; left: 27px; top: 28px; bottom: 28px; width: 2px; background: var(--rule); }
.timeline-progress { position: absolute; inset: 0; background: var(--gold); transform-origin: top; }
/* Live (scroll-driven) version, switched on by site.js */
.timeline--live .timeline-progress { transform: scaleY(0); }
.timeline--live .phase-num { background: var(--white); color: var(--gold-deep); }
.timeline--live .phase.is-lit .phase-num { background: var(--gold); color: var(--white); box-shadow: 0 0 0 6px rgba(201, 169, 110, 0.22); }
@media (min-width: 768px) {
  .timeline .phase { padding-left: 104px; }
  .timeline .phase-num { width: 64px; height: 64px; font-size: 24px; }
  .timeline-line { left: 31px; top: 32px; bottom: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
  .site-header, .site-header .logo img.logo-name, .btn, .card, .quote-card, .article-card, .timeline .phase-num { transition: none !important; }
  .btn:hover, .btn:active, .card:hover, .card:active, .quote-card:hover, .article-card:hover { transform: none !important; }
}
.section--black .subheading { color: var(--gold-light); }

/* Home motion extras (only when site.js has marked the element as waiting to reveal) */
/* 1. Statement band: the gold line draws out from the centre, then the sentence fades up */
.statement-band.reveal { opacity: 1; transform: none; }
.statement-band.reveal .statement-line { transform: scaleX(0); }
.statement-band.reveal .statement { opacity: 0; transform: translateY(14px); }
.statement-band.reveal.is-in .statement-line { transform: scaleX(1); transition: transform 0.45s ease; }
.statement-band.reveal.is-in .statement { opacity: 1; transform: none; transition: opacity 0.5s ease 0.3s, transform 0.5s ease 0.3s; }
/* 2. Testimonials: the five stars fill in one after another as the card appears */
.quote-card.reveal .stars svg { fill: var(--rule); }
.quote-card.reveal.is-in .stars svg { fill: var(--gold-light); transition: fill 0.25s ease; }
.quote-card.reveal.is-in .stars svg:nth-child(1) { transition-delay: calc(var(--d, 0ms) + 0ms); }
.quote-card.reveal.is-in .stars svg:nth-child(2) { transition-delay: calc(var(--d, 0ms) + 60ms); }
.quote-card.reveal.is-in .stars svg:nth-child(3) { transition-delay: calc(var(--d, 0ms) + 120ms); }
.quote-card.reveal.is-in .stars svg:nth-child(4) { transition-delay: calc(var(--d, 0ms) + 180ms); }
.quote-card.reveal.is-in .stars svg:nth-child(5) { transition-delay: calc(var(--d, 0ms) + 240ms); }
/* 3. Meet Derek Elder: the photo slides in slightly from the side while the text rises */
.meet.reveal .meet-photo { opacity: 0; transform: translateX(-28px); }
.meet.reveal.is-in .meet-photo { opacity: 1; transform: none; transition: opacity 0.55s ease 0.1s, transform 0.55s cubic-bezier(.2, .7, .2, 1) 0.1s; }
@media (prefers-reduced-motion: reduce) {
  .statement-band.reveal .statement-line, .statement-band.reveal .statement, .meet.reveal .meet-photo { opacity: 1 !important; transform: none !important; }
  .quote-card.reveal .stars svg { fill: var(--gold-light) !important; }
}

/* Home: sample Identity Gap Report in a phone frame (matches /identity) */
.assessment-split { align-items: center; }
.report-preview { display: block; justify-self: center; text-decoration: none; color: inherit; transition: transform 0.25s ease; }
@media (hover: hover) { .report-preview:hover { transform: translateY(-4px); } }
.rp-phone { width: 280px; background: #0a0a0a; border-radius: 36px; padding: 10px; box-shadow: 0 30px 60px rgba(14, 14, 14, 0.18); }
.rp-screen { position: relative; background: #fff; border-radius: 28px; padding: 30px 22px 0; height: 520px; overflow: hidden; text-align: center; }
.rp-screen::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 90px; background: linear-gradient(rgba(255,255,255,0), #fff 75%); }
.rp-eyebrow, .rp-label { font-family: var(--sans); font-size: 8.5px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: #9a7b3f; }
.rp-name { font-family: var(--serif); font-style: italic; font-size: 13px; color: #6b6863; margin: 8px 0 18px; }
.rp-ring { position: relative; width: 132px; height: 132px; margin: 0 auto 16px; }
.rp-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.rp-ring-bg { fill: none; stroke: #e8e4dc; stroke-width: 8; }
.rp-ring-fill { fill: none; stroke: #b5842f; stroke-width: 8; stroke-linecap: round; stroke-dasharray: 502.65; stroke-dashoffset: 211.1; }
.rp-ring-text { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.rp-score { font-family: var(--serif); font-size: 36px; line-height: 1; color: #0a0a0a; }
.rp-denom { font-family: var(--sans); font-size: 8.5px; letter-spacing: 0.08em; color: #9c9893; margin-top: 4px; }
.rp-tier { font-family: var(--serif); font-size: 19px; color: #0a0a0a; margin-bottom: 14px; }
.rp-divider { width: 30px; height: 1px; background: #c9a96e; margin: 0 auto 16px; }
.rp-rows { display: grid; gap: 9px; margin: 12px 0 20px; }
.rp-row { display: flex; align-items: center; gap: 10px; }
.rp-row-label { width: 68px; flex-shrink: 0; text-align: left; font-family: var(--sans); font-size: 10.5px; color: #0a0a0a; }
.rp-bar { flex: 1; height: 7px; background: #e8e4dc; border-radius: 4px; overflow: hidden; }
.rp-bar span { display: block; height: 100%; width: var(--w); border-radius: 4px; }
.rp-pct { width: 30px; text-align: right; font-family: var(--serif); font-size: 12px; }
.rp-summary { background: #faf9f6; border: 1px solid #e8e4dc; padding: 16px 14px; text-align: left; }
.rp-summary .rp-label { margin-bottom: 10px; }
.rp-line { display: block; height: 6px; background: #e8e4dc; border-radius: 3px; margin-top: 7px; }
.rp-line--short { width: 60%; }
@media (max-width: 899px) { .assessment-split > div:first-child { text-align: center; } .assessment-split > div:first-child p { margin-left: auto !important; margin-right: auto !important; } .report-preview { margin-top: 8px; } }
/* Motion: the ring and bars fill in as the section appears */
.assessment.reveal .rp-ring-fill { stroke-dashoffset: 502.65; }
.assessment.reveal .rp-bar span { width: 0; }
.assessment.reveal.is-in .rp-ring-fill { stroke-dashoffset: 211.1; transition: stroke-dashoffset 0.5s ease; }
.assessment.reveal.is-in .rp-bar span { width: var(--w); transition: width 0.5s ease; }
@media (prefers-reduced-motion: reduce) {
  .assessment.reveal .rp-ring-fill { stroke-dashoffset: 211.1 !important; }
  .assessment.reveal .rp-bar span { width: var(--w) !important; }
  .report-preview { transition: none; }
}

/* Articles: byline, share, subscribe */
.headshot { display: block; object-fit: cover; }
.byline { display: flex; align-items: center; gap: 14px; margin-top: 24px; }
.byline .headshot { width: 56px; height: 56px; }
.byline p { margin: 0; line-height: 1.45; }
.byline-name { font-weight: 600; color: var(--black); font-size: 15px; }
.byline-title { font-family: var(--serif); font-size: 15px; color: var(--gold-deep); }
.byline .article-meta { margin-top: 2px; }
.author-box .headshot { width: 72px; height: 72px; flex-shrink: 0; }
.share { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--rule); }
.share h2 { font-size: 22px; margin-bottom: 16px; }
.share-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.share-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 18px;
  font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--black); background: var(--white); border: 1px solid var(--rule); text-decoration: none; cursor: pointer;
  transition: border-color 0.2s, color 0.2s, transform 0.2s;
}
.share-btn:hover { border-color: var(--gold); color: var(--gold-deep); }
.share-btn:active { transform: scale(0.98); }
.share-status { font-size: 14px; color: var(--gold-deep); margin-top: 10px; min-height: 1.4em; }
.js-only { display: none; }
.js .js-only { display: list-item; }
.subscribe h2 { margin-bottom: 8px; }
.subscribe .subscribe-tagline { font-size: 1.15rem; font-weight: 600; margin-bottom: 12px; }
.subscribe > p { margin-bottom: 28px; max-width: 560px; }
@media (prefers-reduced-motion: reduce) { .share-btn { transition: none; } .share-btn:active { transform: none; } }
.author-box picture, .byline picture { display: block; flex-shrink: 0; }

/* =====================================================================
   Articles (October 2026): standfirst, byline, cards with thumbnails,
   article body parts (pattern cards, exercise boxes, table, quotes,
   photo) and the diagrams built in lib/diagrams.js
   ===================================================================== */
.article-header h1 { max-width: 760px; }
.standfirst { font-size: clamp(19px, 2.4vw, 22px); line-height: 1.6; font-weight: 300; color: var(--grey); margin-top: 18px; max-width: var(--read); }
.byline .headshot, .author-box .headshot { border-radius: 50%; }
.byline .headshot { width: 48px; height: 48px; }
.byline-title { font-size: 14px; }
.article-hero-photo { margin-top: 40px; }
.article-hero-photo img { width: 100%; height: auto; }
.article-section { padding-top: 48px; }
@media (min-width: 768px) { .article-section { padding-top: 64px; } }
.article-body { font-size: 18px; line-height: 1.8; }
.article-body h2 { font-size: clamp(25px, 3.4vw, 32px); }
.article-body li { color: var(--grey); }
.author-box { margin-top: 48px; background: var(--white); }
.author-box p + p { margin-top: 6px; }
.author-box .author-link { margin-top: 12px; }

/* Cards: thumbnail on top, then title, summary, date and reading time */
.article-grid { align-items: stretch; }
.article-card { padding: 0; overflow: hidden; gap: 0; }
.article-thumb { display: block; aspect-ratio: 16 / 9; background: var(--cream); border-bottom: 1px solid var(--rule); overflow: hidden; }
.article-thumb svg, .article-thumb img { width: 100%; height: 100%; object-fit: cover; }
.article-card-body { padding: 24px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.article-card-body p { font-size: 15.5px; line-height: 1.7; }
.article-card-body .article-meta { margin-top: auto; padding-top: 6px; font-size: 13px; }
.section--cream .article-card { background: var(--white); }
@media (min-width: 768px) and (max-width: 999px) { .grid--3.article-grid { grid-template-columns: repeat(2, 1fr); } }

/* Article 1: the four patterns as a 2 by 2 grid of cards */
.patterns { display: grid; gap: 16px; margin-block: 1.6em; }
.pattern { background: var(--cream); border: 1px solid var(--rule); border-top: 3px solid var(--gold); padding: 22px 22px 24px; }
.article-body .pattern h3 { font-size: 22px; margin: 0 0 12px; }
.pattern-num { color: var(--gold-deep); }
.pattern p { font-size: 16px; line-height: 1.7; }
.pattern p + p { margin-top: 10px; }
.pattern strong { color: var(--black); }
.pattern-aside { padding: 6px 0; }
.pattern-aside p + p { margin-top: 1.1em; }
@media (min-width: 680px) {
  .patterns { grid-template-columns: 1fr 1fr; }
  .pattern--1 { grid-area: 1 / 1; } .pattern--2 { grid-area: 1 / 2; }
  .pattern--3 { grid-area: 2 / 1; } .pattern--4 { grid-area: 2 / 2; }
  .pattern-aside { grid-row: 3; grid-column: 1 / -1; padding-top: 10px; }
}

/* Numbered exercises: a box to follow with pen and paper */
.article-body > ol { list-style: none; counter-reset: ex; padding: 26px 22px; background: var(--cream); border: 1px solid var(--rule); border-left: 3px solid var(--gold); }
.article-body > ol > li { counter-increment: ex; position: relative; padding-left: 46px; }
.article-body > ol > li + li { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--rule); }
.article-body > ol > li::before {
  content: counter(ex); position: absolute; left: 0; top: 0; width: 30px; height: 30px;
  border: 1px solid var(--gold); color: var(--gold-deep); background: var(--white); font-family: var(--serif); font-size: 16px;
  display: flex; align-items: center; justify-content: center; line-height: 1;
}
.article-body > ol > li + li::before { top: 16px; }
.article-body ol strong, .article-body ul strong { color: var(--black); }
@media (min-width: 768px) { .article-body > ol { padding: 30px 30px; } }

/* Article 5: the table. Becomes stacked rows on a phone, so no sideways scrolling */
.article-body > table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.55; }
.article-body > table th { text-align: left; font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-deep); padding: 0 14px 10px 0; border-bottom: 2px solid var(--gold); }
.article-body > table td { padding: 14px 14px 14px 0; border-bottom: 1px solid var(--rule); color: var(--grey); vertical-align: top; }
.article-body > table td:first-child { font-family: var(--serif); font-size: 19px; color: var(--black); white-space: nowrap; }
.article-body > table td:nth-child(2) { white-space: nowrap; color: var(--gold-deep); font-weight: 600; font-size: 15px; }
@media (max-width: 599px) {
  .article-body > table, .article-body > table tbody, .article-body > table tr, .article-body > table td { display: block; }
  .article-body > table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .article-body > table tr { padding: 14px 0; border-bottom: 1px solid var(--rule); }
  .article-body > table tr:first-child { border-top: 2px solid var(--gold); }
  .article-body > table td { padding: 0; border: 0; white-space: normal !important; }
  .article-body > table td:first-child { display: inline-block; margin-right: 10px; }
  .article-body > table td:nth-child(2) { display: inline-block; }
  .article-body > table td:nth-child(3) { margin-top: 4px; }
}

/* Quotes: client quotes match the Results page, the Jung quote is a pull quote */
.article-body .article-quote { margin-block: 1.8em; }
.article-body .article-quote blockquote { border: 0; padding: 0; }
.article-body .article-quote blockquote p { font-size: 17px; }
.article-body .stars { display: flex; gap: 3px; }
.article-body .stars svg { width: 16px; height: 16px; fill: var(--gold-light); }
.article-pullquote { border: 0 !important; padding: 8px 0 !important; margin-block: 1.6em !important; text-align: center; }
.article-pullquote::before, .article-pullquote::after { content: ""; display: block; width: 48px; height: 1px; background: var(--gold); margin: 0 auto 22px; }
.article-pullquote::after { margin: 22px auto 0; }
.article-pullquote p { font-family: var(--serif); font-size: clamp(24px, 3.4vw, 32px); line-height: 1.4; color: var(--black); }

/* Article 3: the personal photo beside the story */
.article-photo { margin: 1.4em auto; max-width: 420px; }
.article-photo img { width: 100%; height: auto; }
@media (min-width: 768px) {
  .article-photo--side { float: right; width: 300px; margin: 0.4em 0 1em 32px; }
}
.article-body h2 { clear: both; }

/* Diagrams */
.dg { margin: 2.2em 0; }
.dg svg { width: 100%; height: auto; }
.dg figcaption { text-align: center; font-size: 14px; color: var(--grey); margin-top: 12px; }
.dg--five-waves, .dg--jung-psyche, .dg--affirmation-bounce { max-width: 460px; margin-inline: auto; }
.dg--new-level-loop { max-width: 560px; margin-inline: auto; }
.article-body .filter-graphic { margin: 2.2em auto; }
.dg-tall { display: none; }
@media (max-width: 599px) { .dg-wide { display: none; } .dg-tall { display: block; } }
.dg-name { font-family: var(--serif); font-size: 20px; fill: var(--black); }
.dg-light { fill: var(--white); }
.dg-label { font-family: var(--sans); font-size: 14px; font-weight: 600; fill: var(--black); }
.dg-note { font-family: var(--sans); font-size: 12.5px; font-weight: 300; fill: var(--grey); }
.dg-word { font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; fill: var(--gold-deep); }
.dg-chip { font-family: var(--sans); font-size: 12px; font-weight: 600; fill: var(--grey); text-anchor: middle; }
.dg-chip--on { fill: var(--white); }
.dg-num { font-family: var(--serif); font-size: 19px; fill: var(--white); text-anchor: middle; }
.dg-gold { fill: var(--gold-deep); }
.dg-gold-text { fill: var(--gold-deep); font-weight: 600; }
.dg-mid { text-anchor: middle; }
.dg-end { text-anchor: end; }
.dg-italic { font-style: italic; }
.dg-world { font-family: var(--serif); font-size: 16px; font-weight: 500; letter-spacing: 0.14em; fill: var(--black); text-anchor: middle; }
.dg-side { font-family: var(--sans); font-size: 13px; fill: var(--grey); text-anchor: middle; }
.dg-part { font-family: var(--serif); font-size: 16px; letter-spacing: 0.12em; fill: var(--black); text-anchor: middle; }
.dg-self { font-family: var(--serif); font-size: 34px; font-weight: 500; letter-spacing: 0.06em; fill: var(--black); text-anchor: middle; }
.dg-self--sm { font-size: 20px; }

/* Steps in a row joined by a line (three steps, four phases). Stacks on a phone. */
.dg-steps { list-style: none !important; padding: 0 !important; background: none !important; border: 0 !important; position: relative; display: grid; gap: 18px; counter-reset: none; }
.article-body .dg-steps > li { padding: 0 0 0 64px !important; border: 0 !important; margin: 0 !important; position: relative; min-height: 48px; display: flex; align-items: center; }
.article-body .dg-steps > li::before { content: none; }
.dg-steps-num {
  position: absolute; left: 0; top: 0; width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; background: var(--white);
  border: 1.5px solid var(--gold); color: var(--gold-deep); font-family: var(--serif); font-size: 20px; z-index: 1;
}
.dg-steps--phases .dg-steps-num { border-radius: 0; background: var(--gold); color: var(--white); font-size: 18px; }
.dg-steps-label { font-family: var(--serif); font-size: 19px; color: var(--black); line-height: 1.3; }
.dg-steps::before { content: ""; position: absolute; left: 23px; top: 24px; bottom: 24px; width: 2px; background: var(--gold); transform-origin: top; }
@media (min-width: 600px) {
  .dg-steps { grid-template-columns: repeat(var(--n), 1fr); gap: 16px; }
  .article-body .dg-steps > li { padding: 64px 0 0 !important; display: block; text-align: center; }
  .dg-steps-num { left: 50%; transform: translateX(-50%); }
  .dg-steps::before { left: calc(50% / var(--n)); right: calc(50% / var(--n)); top: 23px; bottom: auto; width: auto; height: 2px; transform-origin: left; }
  .dg-steps-label { font-size: 18px; display: block; }
}

/* What you were told, and what the business asks */
.article-body .tva { width: calc(100% + 88px); margin-inline: -44px; border-collapse: separate; border-spacing: 44px 10px; table-layout: fixed; }
.article-body .tva th { padding: 0 0 2px; border: 0; white-space: normal; }
.article-body .tva th:first-child { color: var(--grey); }
.article-body .tva td { padding: 14px 16px; border: 1px solid var(--rule); font-family: var(--sans); font-size: 16px; white-space: normal; vertical-align: middle; position: relative; }
.article-body .tva td:first-child { background: var(--white); color: var(--grey); }
.article-body .tva td:last-child { background: var(--black); color: var(--white); border-color: var(--black); font-weight: 600; }
.article-body .tva td:first-child::after {
  content: ""; position: absolute; top: 50%; left: 100%; width: 44px; height: 2px; margin: -1px 0 0 1px;
  background: var(--gold); transform-origin: left;
}
@media (max-width: 599px) {
  .article-body .tva, .article-body .tva thead, .article-body .tva tbody, .article-body .tva tr, .article-body .tva td, .article-body .tva th { display: block; width: auto; }
  .article-body .tva { margin-inline: 0; }
  .article-body .tva thead tr { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
  .article-body .tva th { padding: 0 !important; display: flex; align-items: center; gap: 10px; }
  .article-body .tva th::before { content: ""; width: 14px; height: 14px; flex-shrink: 0; border: 1px solid var(--rule); background: var(--white); }
  .article-body .tva th:last-child::before { background: var(--black); border-color: var(--black); }
  .article-body .tva tbody tr { margin-top: 14px; }
  .article-body .tva td:last-child { margin-top: 18px; }
  .article-body .tva td:first-child::after { content: ""; position: absolute; left: 50%; top: 100%; width: 2px; height: 18px; margin-left: -1px; background: var(--gold); transform-origin: top; }
}

/* Diagram motion: only when site.js adds .dg-animate (never with reduced motion) */
.dg-animate .dg-draw { stroke-dasharray: 1; stroke-dashoffset: 1; }
.dg-animate .dg-fade { opacity: 0; }
.dg-animate.dg-play .dg-draw { stroke-dashoffset: 0; transition: stroke-dashoffset 0.55s ease var(--dd, 0s); }
.dg-animate.dg-play .dg-fade { opacity: 1; transition: opacity 0.45s ease var(--dd, 0s); }
.dg-animate .dg-steps::before { transform: scaleX(0); }
@media (max-width: 599px) { .dg-animate .dg-steps::before { transform: scaleY(0); } }
.dg-animate.dg-play .dg-steps::before { transform: none; transition: transform 0.55s ease 0.1s; }
.dg-animate .tva td:first-child::after { transform: scale(0); }
.dg-animate.dg-play .tva td:first-child::after { transform: none; transition: transform 0.4s ease 0.35s; }
.dg-animate .ab-chip { opacity: 0; }
.dg-animate .ab-back { opacity: 0; }
.dg-animate.dg-play .ab-chip { animation: ab-bounce 0.55s ease-out forwards; }
.dg-animate.dg-play .ab-back { animation: fg-fade 0.35s ease forwards 0.5s; }
@keyframes ab-bounce {
  0% { opacity: 0; transform: translateY(-70px); }
  55% { opacity: 1; transform: translateY(0); }
  78% { transform: translateY(-16px); }
  100% { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .dg-animate .dg-draw { stroke-dashoffset: 0 !important; transition: none !important; }
  .dg-animate .dg-fade, .dg-animate .ab-chip, .dg-animate .ab-back { opacity: 1 !important; animation: none !important; transition: none !important; }
  .dg-animate .dg-steps::before, .dg-animate .tva td:first-child::after { transform: none !important; transition: none !important; }
}
@media print { .dg-tall { display: none !important; } .dg-wide { display: block !important; } }
.dg-part--sm { font-size: 13px; letter-spacing: 0.06em; }
.dg-self:not(.dg-self--sm) { paint-order: stroke; stroke: rgba(247, 245, 241, 0.85); stroke-width: 5px; stroke-linejoin: round; }
.dg-band { font-family: var(--serif); font-style: italic; font-size: 14px; fill: var(--black); }
.dg--jung-psyche .dg-part { font-weight: 500; font-size: 17px; letter-spacing: 0.08em; }
.dg--jung-psyche .dg-part--sm { font-size: 14px; letter-spacing: 0.04em; }
.dg--jung-psyche .dg-self { font-size: 46px; font-weight: 600; letter-spacing: 0.02em; stroke: none; }
.dg--jung-psyche .dg-world { font-size: 17px; font-weight: 600; letter-spacing: 0.1em; }

/* Footer disclaimer: one small, muted line at the very bottom of every page */
.footer-disclaimer { margin-top: 20px; font-size: 12px; line-height: 1.6; color: var(--grey); opacity: 0.85; max-width: 760px; }
/* Results: the line under the heading */
.results-note { font-size: 13px; color: var(--grey); margin-bottom: 28px; }

/* Book a call: the GHL calendar. Space is reserved so the page does not jump while it loads;
   GHL's script then sets the exact height, so it never scrolls inside itself. */
.booking-section { padding-top: 40px; }
.booking-frame { max-width: 900px; margin: 0 auto; min-height: 900px; }
.booking-frame iframe { display: block; width: 100%; min-height: 900px; border: 0; overflow: hidden; }
@media (min-width: 768px) { .booking-frame, .booking-frame iframe { min-height: 760px; } }

/* About: the story page */
.about-hero h1.about-label { font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: 0.26em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 18px; }
.about-opening { font-family: var(--serif); font-weight: 500; font-size: clamp(34px, 6vw, 54px); line-height: 1.2; color: var(--black); max-width: 820px; }
.about-photo { background: var(--cream); padding-bottom: 48px; }
.about-photo img { width: 100%; height: auto; max-height: 760px; object-fit: cover; object-position: 50% 30%; }
.about-story { font-size: 18px; line-height: 1.85; max-width: 66ch; }
.about-story .story-inline { margin: 2.2em 0; }
.story-pullquote { border: 0 !important; padding: 8px 0 !important; margin: 2em 0 !important; }
.story-pullquote p { font-family: var(--serif); font-size: clamp(25px, 3.6vw, 34px); line-height: 1.35; color: var(--black); }
.story-pullquote::before { content: ""; display: block; width: 48px; height: 2px; background: var(--gold); margin-bottom: 22px; }
.about-credentials { font-size: 14px; color: var(--grey); letter-spacing: 0.02em; }
.about-links { margin-top: 20px; }

/* Articles: a small, quiet "Book a call" at the end of the byline row (not sticky) */
.byline { flex-wrap: wrap; }
.byline-cta {
  margin-left: auto; align-self: center; display: inline-flex; align-items: center; min-height: 40px; padding: 8px 16px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none;
  color: var(--gold-deep); background: transparent; border: 1px solid var(--gold); transition: background-color 0.2s, color 0.2s;
}
.byline-cta:hover { background: var(--gold-deep); color: var(--white); border-color: var(--gold-deep); }
@media (max-width: 599px) { .byline { row-gap: 14px; } .byline > div { flex: 1 1 calc(100% - 62px); } .byline-cta { margin-left: 0; } }
@media (prefers-reduced-motion: reduce) { .byline-cta { transition: none; } }

/* Magnetic to Money */
.m2m-line { margin-top: 14px; color: var(--grey); }
.m2m-form { margin-top: 24px; }
.m2m-submit { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 8px; }
.m2m-privacy { font-size: 14px; color: var(--gold-deep); }
.m2m-consent { font-size: 14px; color: var(--grey); margin: 4px 0 0; }
.m2m-success { display: none; font-family: var(--serif); font-size: clamp(21px, 2.6vw, 26px); line-height: 1.45; color: var(--black); margin-top: 20px; }
[data-ajax-form-wrap].is-sent .m2m-form { display: none; }
[data-ajax-form-wrap].is-sent .m2m-success { display: block; }
.m2m-success:focus { outline: none; }
.m2m-smallprint { font-size: 13px; color: var(--grey); margin-top: 24px; max-width: 600px; }
.form-error:empty { display: none; }
.m2m-steps { list-style: none; padding: 0; display: grid; gap: 20px; }
.m2m-step { display: flex; gap: 20px; align-items: flex-start; background: var(--cream); border: 1px solid var(--rule); border-left: 3px solid var(--gold); padding: 26px 24px; }
.m2m-step h2 { font-size: clamp(22px, 2.6vw, 26px); margin-bottom: 8px; }
.m2m-step p { margin-bottom: 16px; }
.m2m-step > div { flex: 1; min-width: 0; }
.m2m-step-num { flex-shrink: 0; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; background: var(--gold); color: var(--white); font-family: var(--serif); font-size: 18px; }
.m2m-audio { width: 100%; margin: 6px 0 16px; }
.m2m-note { font-size: 14px; color: var(--grey); margin-top: 18px; }
.m2m-note + .m2m-note { margin-top: 6px; }
.m2m-deeper { margin-top: 40px; }
@media (max-width: 599px) { .m2m-step { flex-direction: column; gap: 14px; padding: 22px 18px; } .m2m-step .btn { width: 100%; justify-content: center; text-align: center; } }

/* ---------- Articles 7 and 8: diagrams with looping motion ----------
   Loops (.dg-loop) only run while site.js marks the diagram .dg-live (on screen).
   With reduced motion site.js adds nothing, so the finished state shows. */
.dg--frequency-levels, .dg--identity-loop, .dg--one-belief { max-width: 480px; margin-inline: auto; }
.dg-animate .dg-loop { animation-play-state: paused; }
.dg-animate.dg-live .dg-loop { animation-play-state: running; }

/* Frequency levels: every band drifts left at the same speed */
.dg-animate .fl-drift { animation: fl-drift var(--dur) linear infinite; }
@keyframes fl-drift { to { transform: translateX(var(--period)); } }
.dg-animate .fl-rise { clip-path: inset(100% 0 0 0); }
.dg-animate.dg-play .fl-rise { clip-path: inset(0 0 0 0); transition: clip-path 1.2s ease 0.4s; }
.fl-pulse { transform-box: fill-box; transform-origin: center; opacity: 0; }
.dg-animate.dg-play .fl-pulse { animation: fl-pulse 2.6s ease-out 1.7s infinite; }
@keyframes fl-pulse { 0% { transform: scale(1); opacity: 0.7; } 100% { transform: scale(2.4); opacity: 0; } }

/* What you notice: the same day, two levels */
.wn-buttons { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 18px; }
.wn-buttons button { font: 600 12px/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; padding: 12px 16px; background: var(--white); color: var(--black); border: 1px solid var(--rule); cursor: pointer; }
.wn-buttons button[aria-pressed="true"] { background: var(--black); color: var(--white); border-color: var(--black); }
.prose .wn-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
@media (min-width: 600px) { .prose .wn-grid { grid-template-columns: repeat(4, 1fr); gap: 8px; } }
.prose .wn-grid li { margin: 0; padding: 12px 6px; min-height: 56px; display: flex; align-items: center; justify-content: center; text-align: center; font-size: 13px; line-height: 1.25; background: var(--white); border: 1px solid var(--rule); color: var(--black); transition: background-color 0.5s ease, color 0.5s ease, opacity 0.5s ease, border-color 0.5s ease; }
.prose .wn-grid li::before { content: none; }
[data-level] .wn-grid li { opacity: 0.38; }
[data-level="survival"] .wn-grid li[data-s] { opacity: 1; background: #6e655c; border-color: #6e655c; color: var(--white); }
[data-level="certainty"] .wn-grid li[data-c] { opacity: 1; background: var(--gold-deep); border-color: var(--gold-deep); color: var(--white); }

/* Willpower snapback: two panels */
.dg--willpower-snapback { max-width: 600px; margin-inline: auto; }
.ws-panels { display: grid; gap: 18px; }
.ws-panel { max-width: 320px; width: 100%; margin-inline: auto; }
@media (min-width: 600px) { .ws-panels { grid-template-columns: 1fr 1fr; } }
.ws-cap { text-align: center; font-size: 14px; color: var(--grey); margin: 10px 0 0 !important; }
.dg-animate .ws-lift { animation: ws-lift 6s ease-in-out infinite; }
.dg-animate .ws-push { animation: ws-push 6s ease-in-out infinite; }
@keyframes ws-lift {
  0%, 8% { transform: translateY(0); }
  28% { transform: translateY(-74px); }
  48% { transform: translateY(-74px); }
  52% { transform: translateY(-70px) rotate(0); }
  55% { transform: translateY(-76px); }
  58% { transform: translateY(-69px); }
  61% { transform: translateY(-75px); }
  72% { transform: translateY(6px); }
  78% { transform: translateY(-3px); }
  84%, 100% { transform: translateY(0); }
}
@keyframes ws-push { 0%, 55% { opacity: 1; } 64%, 92% { opacity: 0; } 100% { opacity: 1; } }
.dg-animate .ws-rise { transform: translateY(70px); }
.dg-animate.dg-play .ws-rise { transform: none; transition: transform 1.8s cubic-bezier(0.22, 1, 0.36, 1) 0.4s; }

/* Identity loop and one belief: pulses travel along the lines */
.il-pulse, .ob-pulse { stroke-dasharray: 0.001 0.16; stroke-dashoffset: 0.161; opacity: 0; }
.dg-animate .il-pulse, .dg-animate .ob-pulse { opacity: 1; animation: dg-travel 2.6s linear infinite; animation-delay: var(--od, 0s); }
@keyframes dg-travel { to { stroke-dashoffset: 0; } }

/* One belief, three places: the line for each branch */
.prose .ob-lines { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.prose .ob-lines li { margin: 0; padding: 10px 14px; background: var(--white); border-left: 2px solid var(--gold); font-size: 15px; line-height: 1.4; }
.prose .ob-lines li::before { content: none; }
.ob-lines-name { font-family: var(--serif); font-weight: 500; margin-right: 4px; }
.ob-branch { cursor: pointer; }
.ob-branch.is-on .ob-leaf { fill: var(--cream); stroke: var(--gold-deep); stroke-width: 2; }
@media (min-width: 600px) {
  .prose .ob-lines { grid-template-columns: repeat(3, 1fr); }
  .prose .ob-lines li { text-align: center; border-left: 0; border-top: 2px solid var(--gold); font-size: 14px; }
  .ob-js .ob-lines li { opacity: 0; transition: opacity 0.3s ease; }
  .ob-js .ob-lines li.is-on { opacity: 1; }
  .ob-js .ob-lines-name { display: none; }
}
