/* UPLIFT 1.1 — approved Ascent / Momentum / Horizon artwork.
 * Art is never globally faded. Text has local reading surfaces instead.
 * Bounded artwork height prevents long mobile sections from enlarging one crop.
 */
body {
  --uplift-paper: #f2eef9;
  --uplift-reading: #25233d;
  --uplift-reading-muted: #504d65;
  --uplift-bg-dark: url('../images/backgrounds/momentum-dark.webp');
  --uplift-bg-light: url('../images/backgrounds/momentum-light.webp');
  --uplift-art-height: clamp(580px, 66vw, 1060px);
}
body.uplift-visual-ascent {
  --uplift-bg-dark: url('../images/backgrounds/ascent-dark.webp');
  --uplift-bg-light: url('../images/backgrounds/ascent-light.webp');
}
body.uplift-visual-horizon {
  --uplift-bg-dark: url('../images/backgrounds/horizon-dark.webp');
  --uplift-bg-light: url('../images/backgrounds/horizon-light.webp');
}
.hero, .section, .hero-proof-band { isolation: isolate; }
.hero .shell, .section > .shell { position: relative; z-index: 1; }
.section :is(h2, h3), .hero h1 { overflow-wrap: break-word; }
.section h2 { line-height: 1.08; }

/* Ascent occupies the complete home hero; all copy is selectable HTML. */
.hero {
  min-height: min(1040px, max(800px, 100svh));
  display: flex;
  align-items: center;
  padding: 0;
  background: #05042f;
}
.hero-bg {
  display: block;
  position: absolute;
  inset: 0;
  height: auto;
  min-height: 0;
  background-image: var(--uplift-bg-dark);
  background-size: auto clamp(800px, 71vw, 1160px);
  background-position: right bottom;
  background-repeat: no-repeat;
}
.hero-overlay { display: none; }
.hero-content {
  padding-top: calc(var(--uplift-header-h, 86px) + 74px);
  padding-bottom: 150px;
}
.hero-copy {
  width: min(100%, 780px);
  padding: 28px 32px 32px 0;
  border-radius: 0 28px 28px 0;
  background: linear-gradient(90deg, rgba(5,4,47,.89), rgba(5,4,47,.72) 68%, rgba(5,4,47,0));
}
.hero-content .eyebrow { display: block; max-width: 670px; line-height: 1.7; }
.hero h1, .hero-lede, .hero-actions { visibility: visible; }
.hero h1 {
  max-width: 18ch;
  margin: 0 0 26px;
  color: #fff;
  font-size: clamp(3rem, 5.25vw, 5.1rem);
  line-height: 1.055;
  letter-spacing: -.045em;
  text-wrap: balance;
}
.hero h1 span {
  background: none;
  color: #d5c7ff;
  -webkit-text-fill-color: currentColor;
}
.hero-lede {
  max-width: 620px;
  margin: 0 0 30px;
  color: #eeeaf9;
  font-size: clamp(1rem, 1.4vw, 1.14rem);
  line-height: 1.7;
}
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 20px 28px; }
.hero-actions .button-primary {
  color: #fff;
  background: #6540b2;
  border-color: #b195ef;
}
.hero-actions .text-link { color: #e6dcff; }
.hero-mobile-visual { display: none; }
.hero-proof-band { background: #090635; padding: 22px 0; }
.hero-proof-band .hero-proof { background: rgba(201,184,255,.15); backdrop-filter: none; }
.hero-proof div { background: #100b43; padding: 19px 22px; }
.hero-proof strong { font-size: .9rem; }
.hero-proof span { color: #d0cbe2; font-size: .76rem; }

/* Light sections retain the image's own highlights and structure at full strength. */
.uplift-light, .generic-content, .error-page {
  --line: rgba(81,57,126,.2);
  --accent: #593292;
  --muted: var(--uplift-reading-muted);
  color: var(--uplift-reading);
  background-color: var(--uplift-paper);
  background-image:
    linear-gradient(180deg, transparent calc(var(--uplift-art-height) - 100px), var(--uplift-paper) var(--uplift-art-height)),
    var(--uplift-bg-light);
  background-size: 100% 100%, auto var(--uplift-art-height);
  background-position: center top, right top;
  background-repeat: no-repeat;
}
.uplift-light { padding-top: 116px; padding-bottom: 116px; }
.uplift-light .eyebrow, .generic-content .eyebrow, .error-page .eyebrow { color: #5d339b; }
.uplift-reading-panel {
  padding: clamp(24px, 3.3vw, 44px);
  border: 1px solid rgba(117,88,164,.2);
  border-radius: 22px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 14px 40px rgba(43,24,81,.045);
}
.uplift-light .section-heading { margin-bottom: 34px; }
.uplift-light .split-heading > p { color: var(--uplift-reading-muted); }
.uplift-light :is(.cap-card, .steps article, .reality-grid article) {
  background: rgba(255,255,255,.96);
  border-color: rgba(101,73,146,.19);
  box-shadow: 0 12px 34px rgba(43,24,81,.045);
}
.uplift-light :is(.cap-card, .steps article, .reality-grid article) > span { color: #6740a9; }
.uplift-light :is(.cap-card p, .steps p, .reality-grid p, .individual-uplift p, .about-copy p) { color: var(--uplift-reading-muted); }
.uplift-light .cap-card li { color: #37314f; }
.uplift-light .cap-card li::before { color: #7147c8; }
.uplift-light :is(.text-link, .reality-grid a) { color: #58308f; border-color: rgba(88,48,143,.4); }
.uplift-light a:hover { text-decoration-thickness: 2px; }
.uplift-light .steps article { border-radius: 0 0 16px 16px; border-top: 3px solid #8b69c9; }
.uplift-light .individual-uplift {
  margin-top: 32px;
  background: rgba(255,255,255,.96);
  border-color: rgba(101,73,146,.22);
}
.uplift-light .individual-uplift .eyebrow { color: #5d339b; margin-bottom: 12px; }
.uplift-light .individual-uplift h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.25; }
.uplift-light .reality-grid blockquote { color: #302643; border-color: #8d64cf; }
.uplift-light .reality-close { background: none; color: #513287; -webkit-text-fill-color: currentColor; }
.about-grid.uplift-reading-panel { padding: clamp(26px, 4vw, 54px); }
.about-copy p { line-height: 1.72; }

/* New editorial photography complements, rather than replaces, the native diagrams. */
.uplift-editorial { position: relative; aspect-ratio: 3 / 2; margin: 0; overflow: hidden; border-radius: 20px; border: 1px solid rgba(101,73,146,.21); background: #ded5ed; }
.uplift-editorial-image { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.uplift-editorial--strategy { aspect-ratio: 16 / 9; height: auto; margin: 0 0 34px; }
.uplift-editorial--method { aspect-ratio: 16 / 9; height: auto; margin-top: 34px; }
.uplift-editorial--strategy .uplift-editorial-image,
.uplift-editorial--method .uplift-editorial-image { object-position: center top; }
.uplift-editorial--contact { aspect-ratio: 4 / 3; margin-top: 32px; }

/* Ascent in its dark form punctuates the longer light reading areas. */
.engine-section, .leakage-section {
  background-color: #080534;
  background-image:
    linear-gradient(180deg, transparent calc(var(--uplift-art-height) - 100px), #080534 var(--uplift-art-height)),
    var(--uplift-bg-dark);
  background-size: 100% 100%, auto var(--uplift-art-height);
  background-position: center top, right top;
  background-repeat: no-repeat;
}
.uplift-engine-overview { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 44px; align-items: center; }
.uplift-engine-overview .section-heading {
  margin: 0;
  padding: 24px 22px 24px 0;
  background: linear-gradient(90deg, rgba(5,4,47,.85), rgba(5,4,47,0));
}
.uplift-engine-overview h2 { font-size: clamp(2.3rem, 3.7vw, 4rem); }
.uplift-growth-visual { margin: 0; border: 1px solid rgba(201,184,255,.24); border-radius: 24px; overflow: hidden; background: #08052e; box-shadow: 0 25px 60px rgba(3,2,22,.25); }
.uplift-growth-image { display: block; width: 100%; height: auto; }
.engine-flow { margin-top: 34px; }
.engine-flow div { background: rgba(6,4,39,.92); color: #fff; }
.engine-note { display: inline-block; padding: 12px 16px; border-radius: 10px; background: rgba(5,4,47,.9); color: #e4def4; }
.leakage-grid > div:first-child { padding: 28px; border-radius: 22px; background: rgba(5,4,47,.92); }
.leakage-grid p { color: #ded8ee; }
.leakage-visual { background: rgba(8,5,52,.94); border-color: rgba(201,184,255,.38); }
.metric { gap: 10px; }
.metric small { letter-spacing: .07em; overflow-wrap: anywhere; }

/* A calm white form keeps every field legible against the visible artwork. */
.contact-grid { gap: clamp(28px, 5vw, 64px); }
.contact-grid > div:first-child { padding: 28px; border-radius: 22px; background: rgba(255,255,255,.95); }
.contact-grid h2 { font-size: clamp(2.1rem, 3.7vw, 3.5rem); }
.contact-lede, .contact-direct { color: #504d65; }
.contact-direct { overflow-wrap: anywhere; }
.contact-direct a:first-child { color: #5d339b; }
.uplift-light .form-panel { background: #fff; border-color: rgba(101,73,146,.3); backdrop-filter: none; box-shadow: 0 20px 60px rgba(43,24,81,.1); }
.uplift-light .uplift-form label { color: #322a44; }
.uplift-light .uplift-form :is(input, textarea, select) { color: #25233d; background: #faf8fd; border-color: #b5a8c9; }
.uplift-light .uplift-form input::placeholder, .uplift-light .uplift-form textarea::placeholder { color: #6a6178; opacity: 1; }
.uplift-light .uplift-form .check input { accent-color: #673eaa; }
.uplift-light .uplift-form .check a { color: #59318f; }
.uplift-light .uplift-form .check a:hover { color: #32185b; }
.uplift-light .uplift-form button.button-primary { background: #6540b2; color: #fff; border-color: #6540b2; box-shadow: 0 10px 25px rgba(78,41,132,.15); }
.uplift-light .uplift-form button.button-primary span { color: inherit; }
.uplift-light .uplift-form button.button-primary:hover,
.uplift-light .uplift-form button.button-primary:focus-visible { background: #513087; color: #fff; border-color: #513087; }
.uplift-light .form-message.success { color: #13573d; background: #e6f5ed; }
.uplift-light .form-message.error { color: #8a233b; background: #fff0f3; }
.uplift-light :is(a, button, input, textarea, select):focus-visible,
.generic-content a:focus-visible { outline: 3px solid #6b40ab; outline-offset: 4px; }

/* Inner pages receive their own selected family through body_class. */
.generic-content, .error-page { padding-top: calc(var(--uplift-header-h, 86px) + 125px); padding-bottom: 120px; min-height: 85svh; }
.generic-content article, .error-page .narrow {
  padding: clamp(26px, 5vw, 62px);
  border: 1px solid rgba(101,73,146,.22);
  border-radius: 24px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 22px 70px rgba(43,24,81,.09);
}
.generic-content article + article { margin-top: 30px; }
.generic-content h1, .error-page h1 { margin: .25em 0 .65em; color: #27203c; font-size: clamp(2.4rem, 4.8vw, 4.2rem); line-height: 1.08; overflow-wrap: break-word; }
.generic-content article :is(p, li), .error-page p { color: #504d65; }
.generic-content article :is(h2, h3, strong) { color: #302543; }
.generic-content article a { color: #5c3597; }
.error-page .button-primary { background: #6540b2; border-color: #6540b2; color: #fff; }
.site-footer { background: #05042f; }

/* Curated Insights uses Momentum, independent of the home-page Ascent. */
.insights-page { padding-top: calc(var(--uplift-header-h, 86px) + 125px); padding-bottom: 120px; min-height: 85svh; }
.insights-intro { max-width: 850px; padding: clamp(28px, 4vw, 50px); border: 1px solid rgba(101,73,146,.2); border-radius: 22px; background: rgba(255,255,255,.96); }
.insights-intro h1 { font-size: clamp(2.7rem, 5.5vw, 5rem); line-height: 1.08; letter-spacing: -.04em; color: #302543; margin: .2em 0 .5em; }
.insights-intro p { color: #504d65; font-size: 1.05rem; line-height: 1.7; }
.insights-intro .eyebrow { font-size: .74rem; color: #5d339b; }
.insights-intro + .insights-intro { margin-top: 28px; }
.insights-editor-content :is(h2, h3) { font-size: clamp(1.6rem, 2.8vw, 2.4rem); line-height: 1.2; }
.insights-editor-content :is(a, strong) { color: #58308f; }
.insights-page .individual-uplift { align-items: center; }
.insights-page .individual-uplift h2 { font-size: clamp(1.8rem, 3.1vw, 2.8rem); }
.insights-page .individual-uplift > p { justify-self: end; }
.intel-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 44px; }
.intel-card { min-width: 0; padding: 36px; border-radius: 20px; border: 1px solid rgba(101,73,146,.2); background: rgba(255,255,255,.96); box-shadow: 0 12px 34px rgba(43,24,81,.045); }
.intel-card :is(h2, h3) { margin: 15px 0 18px; color: #302543; font-size: clamp(1.6rem, 2.7vw, 2.3rem); line-height: 1.15; }
.intel-card :is(p, li) { color: #504d65; line-height: 1.75; }
.intel-card > span { color: #6740a9; font-size: .76rem; font-weight: 800; letter-spacing: .13em; }
.intel-card blockquote { margin: 24px 0; padding: 4px 0 4px 20px; border-left: 3px solid #8d64cf; color: #302543; font-weight: 700; }
.intel-card a { color: #58308f; text-decoration: underline; text-underline-offset: .2em; overflow-wrap: anywhere; }
.insights-page .button-primary { background: #6540b2; color: #fff; border-color: #6540b2; }

@media (max-width: 1100px) {
  .hero-content { padding-top: calc(var(--uplift-header-h, 80px) + 58px); }
  .hero-copy { width: min(84%, 760px); }
  .uplift-engine-overview { grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); gap: 30px; }
  .uplift-reading-panel.split-heading { grid-template-columns: 1.15fr 1fr; gap: 30px; }
  .about-grid { gap: 36px; }
}
@media (max-width: 780px) {
  body {
    --uplift-bg-dark: url('../images/backgrounds/momentum-dark-mobile.webp');
    --uplift-bg-light: url('../images/backgrounds/momentum-light-mobile.webp');
    /* Mobile files retain the complete 16:9 composition, without a new crop. */
    --uplift-art-height: 56.25vw;
  }
  body.uplift-visual-ascent {
    --uplift-bg-dark: url('../images/backgrounds/ascent-dark-mobile.webp');
    --uplift-bg-light: url('../images/backgrounds/ascent-light-mobile.webp');
  }
  body.uplift-visual-horizon {
    --uplift-bg-dark: url('../images/backgrounds/horizon-dark-mobile.webp');
    --uplift-bg-light: url('../images/backgrounds/horizon-light-mobile.webp');
  }
  .hero { min-height: 0; display: block; padding: 0; }
  .hero-bg { display: block; position: absolute; inset: 0; height: auto; min-height: 0; background-size: 100% auto; background-position: center bottom; }
  .hero-overlay { display: none; }
  .hero-content { padding-top: calc(var(--uplift-header-h, 76px) + 34px); padding-bottom: calc(var(--uplift-art-height) + 24px); }
  .hero-copy { width: 100%; padding: 20px 16px 24px; border-radius: 18px; background: rgba(5,4,47,.88); }
  .hero-content .eyebrow { margin-bottom: 16px; font-size: .67rem; letter-spacing: .12em; line-height: 1.75; }
  .hero h1 { max-width: none; font-size: clamp(2.15rem, 7.8vw, 3.6rem); line-height: 1.09; letter-spacing: -.038em; margin-bottom: 22px; }
  .hero h1 span { background: none; color: #d5c7ff; -webkit-text-fill-color: currentColor; }
  .hero-lede { color: #eeeaf9; font-size: 1rem; line-height: 1.65; margin-bottom: 26px; }
  .hero-actions { gap: 20px; }
  .hero-actions .button { min-height: 54px; padding: 0 18px; font-size: .86rem; }
  .hero-actions .text-link { font-size: .9rem; }
  .hero-proof-band { padding: 18px 0; }
  .hero-proof div { padding: 16px; }
  .hero-proof strong { font-size: .82rem; }
  .hero-proof span { font-size: .72rem; }
  .uplift-light, .generic-content, .error-page {
    background-image:
      linear-gradient(180deg, transparent calc(var(--uplift-art-height) - 16px), var(--uplift-paper) var(--uplift-art-height)),
      var(--uplift-bg-light);
    background-size: 100% 100%, 100% auto;
    background-position: center top, center top;
  }
  /* A visible art band precedes the reading panels rather than sitting beneath them. */
  .uplift-light { padding-top: calc(var(--uplift-art-height) + 28px); padding-bottom: 80px; }
  .engine-section, .leakage-section {
    padding-top: calc(var(--uplift-art-height) + 28px);
    background-image:
      linear-gradient(180deg, transparent calc(var(--uplift-art-height) - 16px), #080534 var(--uplift-art-height)),
      var(--uplift-bg-dark);
    background-size: 100% 100%, 100% auto;
    background-position: center top, center top;
  }
  .uplift-reading-panel { padding: 25px 21px; border-radius: 18px; }
  .uplift-reading-panel.split-heading { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .section h2 { font-size: clamp(2rem, 8.1vw, 3rem); line-height: 1.12; }
  .section-intro .section-heading h2 { font-size: clamp(2rem, 8.1vw, 3rem); max-width: none; line-height: 1.12; }
  .section-intro .split-heading > p { margin: 0; }
  .uplift-editorial--strategy, .uplift-editorial--method { height: auto; aspect-ratio: 4 / 3; }
  .uplift-editorial { border-radius: 17px; }
  .uplift-engine-overview { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .uplift-engine-overview .section-heading { padding: 25px 21px; border-radius: 18px; background: rgba(5,4,47,.9); }
  .uplift-growth-visual { width: 100%; max-width: 540px; justify-self: center; border-radius: 20px; }
  .engine-flow { margin-top: 16px; padding-top: 24px; }
  .engine-note { font-size: .9rem; line-height: 1.6; }
  .leakage-grid > div:first-child { padding: 25px 21px; }
  .leakage-visual { padding: 32px 20px; }
  .metric { gap: 7px; }
  .metric small { font-size: .61rem; letter-spacing: .035em; }
  .about-grid.uplift-reading-panel { padding: 25px 21px; gap: 25px; }
  .about-copy p { font-size: 1rem; }
  .contact-grid > div:first-child { padding: 25px 21px; border-radius: 18px; }
  .contact-grid h2 { font-size: clamp(2rem, 8.1vw, 3rem); }
  .contact-direct { font-size: .93rem; }
  .contact-grid .form-panel { padding: 25px 21px; }
  .uplift-light .individual-uplift { padding: 26px 22px; gap: 22px; }
  .generic-content, .error-page, .insights-page {
    --uplift-art-end: calc(var(--uplift-header-h, 76px) + var(--uplift-art-height));
    padding-top: calc(var(--uplift-art-end) + 28px);
    padding-bottom: 90px;
    background-image:
      linear-gradient(180deg, transparent calc(var(--uplift-art-end) - 16px), var(--uplift-paper) var(--uplift-art-end)),
      var(--uplift-bg-light);
    background-size: 100% 100%, 100% auto;
    background-position: center top, center var(--uplift-header-h, 76px);
  }
  .generic-content article, .error-page .narrow { padding: 28px 22px; border-radius: 20px; }
  .generic-content h1, .error-page h1 { font-size: clamp(2.1rem, 9vw, 3rem); }
  .insights-intro { padding: 28px 22px; border-radius: 20px; }
  .insights-intro h1 { font-size: clamp(2.2rem, 9vw, 3.2rem); }
  .intel-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; margin-top: 28px; }
  .intel-card { padding: 28px 22px; }
  .insights-page .individual-uplift > p { justify-self: start; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-bg, .uplift-editorial-image, .uplift-growth-image { animation: none; transform: none; }
}
