/* Chase Merritt strategies page — aligned to homepage design system */

:root {
    --cm-canvas-ink: #080F14;
    --cm-canvas-ink-2: #080F14;
    --cm-canvas-paper: #F5F0E8;
    --cm-canvas-paper-2: #FFFEF9;
    --cm-canvas-gold: #B8924A;
    --cm-canvas-gold-soft: rgba(184, 146, 74, 0.56);
    --cm-canvas-line: rgba(184, 146, 74, 0.52);
    --cm-canvas-text: #080F14;
    --cm-canvas-shell: min(1350px, calc(100vw - 54px));
}

html,
body {
    min-height: 100%;
    background: var(--cm-canvas-ink);
    background-color: var(--cm-canvas-ink);
}

.cm-strategies {
  background: var(--cm-canvas-ink);
  background-color: var(--cm-canvas-ink);
  color: var(--cm-canvas-paper-2);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.cm-strategies .cm-header,
.cm-strategies .cm-header:not(.is-scrolled) {
    background: var(--cm-canvas-ink);
    border-bottom-color: rgba(255, 254, 249, 0.08);
}

.cm-strategies .cm-header-logo::after,
.cm-strategies .cm-header:not(.is-scrolled) .cm-header-logo::after {
    color: #FFFFFF;
}

.cm-strategies .cm-header-nav a,
.cm-strategies .cm-header:not(.is-scrolled) .cm-header-nav a {
    color: var(--cm-canvas-paper-2);
}

.cm-strategies .cm-header-nav a:hover,
.cm-strategies .cm-header-nav a.active,
.cm-strategies .cm-header:not(.is-scrolled) .cm-header-nav a:hover,
.cm-strategies .cm-header:not(.is-scrolled) .cm-header-nav a.active {
    color: var(--cm-canvas-gold);
}

.cm-strategies .cm-header-nav a.cm-nav-cta,
.cm-strategies .cm-header:not(.is-scrolled) .cm-header-nav a.cm-nav-cta {
    border-color: rgba(255, 254, 249, 0.55);
    color: var(--cm-canvas-paper-2);
}

.cm-strategies .cm-header-nav a.cm-nav-cta:hover,
.cm-strategies .cm-header-nav a.cm-nav-cta:focus-visible,
.cm-strategies .cm-header:not(.is-scrolled) .cm-header-nav a.cm-nav-cta:hover,
.cm-strategies .cm-header:not(.is-scrolled) .cm-header-nav a.cm-nav-cta:focus-visible {
    background: var(--cm-canvas-gold);
    border-color: var(--cm-canvas-gold);
    color: var(--cm-canvas-paper-2);
}

@media screen and (max-width: 900px) {
    .cm-strategies .cm-nav-toggle span,
    .cm-strategies .cm-header:not(.is-scrolled) .cm-nav-toggle span {
        background: var(--cm-canvas-paper-2);
    }

    .cm-strategies .cm-header-nav,
    .cm-strategies .cm-header:not(.is-scrolled) .cm-header-nav,
    .cm-strategies .cm-header-nav.is-open,
    .cm-strategies .cm-header:not(.is-scrolled) .cm-header-nav.is-open {
        background: rgba(8, 15, 20, 0.96);
        border-bottom-color: rgba(255, 254, 249, 0.12);
    }
}

.cm-strategies-main {
    position: relative;
    overflow: hidden;
    background: var(--cm-canvas-ink);
    background-color: var(--cm-canvas-ink);
}

.cm-strategies .cm-canvas-shell,
.cm-tlf-strategy {
    width: var(--cm-canvas-shell);
    margin-left: auto;
    margin-right: auto;
}

.cm-strategies-hero {
    position: relative;
    min-height: clamp(830px, 70vw, 960px);
    overflow: hidden;
    background: var(--cm-canvas-ink);
}

.cm-strategies-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(8, 15, 20, 0.34) 0%, rgba(8, 15, 20, 0.08) 44%, rgba(8, 15, 20, 0) 72%),
        linear-gradient(180deg, rgba(8, 15, 20, 0.3) 0%, rgba(8, 15, 20, 0) 34%);
    pointer-events: none;
}

.cm-strategies-hero::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    height: clamp(28px, 2.6vw, 42px);
    background: var(--cm-canvas-ink);
    pointer-events: none;
}

.cm-strategies-hero__image {
    position: absolute;
    inset: clamp(-72px, -5vw, -42px) 0 auto;
    width: 100%;
    height: min(1030px, 75vw);
    min-height: 900px;
    object-fit: cover;
    object-position: center top;
}

.cm-strategies-hero__copy {
    position: relative;
    z-index: 3;
    padding-top: clamp(306px, 27vw, 368px);
}

/* Desktop: clone the home hero title's horizontal box (shell width,
   -30px nudge) so the h1's left edge matches home on page switch; the
   vertical position deliberately stays lower (CJ preferred it).
   Uses `left`, not transform — the reveal animation owns transform. */
@media (min-width: 1181px) {
    .cm-strategies .cm-strategies-hero__copy {
        width: min(1210px, calc(100vw - 150px));
        left: -30px;
    }
}

.cm-strategies-hero h1,
.cm-tlf-strategy h2,
.cm-tlf-strategy h2 span {
  margin: 0;
}

.cm-strategies-hero h1 {
  color: var(--cm-canvas-paper-2);
}

.cm-strategies-hero h1 span,
.cm-tlf-strategy h2 span {
    color: var(--cm-canvas-gold);
}

.cm-strategies-hero__curve {
    position: absolute;
    z-index: 3;
    left: 0;
    right: 0;
    bottom: clamp(28px, 2.6vw, 42px);
    display: block;
    width: 100%;
    height: clamp(240px, 26vw, 360px);
}

.cm-strategies-hero__curve path {
    fill: var(--cm-canvas-ink);
}

.cm-tlf-strategy {
    position: relative;
    display: grid;
    grid-template-columns: minmax(540px, 1fr) minmax(500px, 0.9fr);
    column-gap: clamp(48px, 5vw, 76px);
    align-items: start;
}

.cm-tlf-strategy--region {
    padding: 150px 0 262px;
}

.cm-tlf-strategy--cornerstone {
    grid-template-columns: minmax(460px, 0.82fr) minmax(560px, 1fr);
    column-gap: clamp(48px, 5vw, 76px);
    padding: 0 0 252px;
}

.cm-tlf-strategy--opportunistic {
    padding: 102px 0 250px;
}

.cm-tlf-strategy__copy {
    position: relative;
    z-index: 2;
}

.cm-strategies .cm-canvas-eyebrow {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 0 0 24px;
  color: var(--cm-canvas-gold);
  white-space: nowrap;
}

.cm-strategies .cm-canvas-eyebrow::after {
    content: "";
    width: 250px;
    height: 1px;
    background: linear-gradient(90deg, var(--cm-canvas-gold), rgba(184, 146, 74, 0));
}

.cm-tlf-strategy h2 {
  color: var(--cm-canvas-paper-2);
}

.cm-tlf-strategy--region .cm-tlf-heading-line {
    color: var(--cm-canvas-paper-2);
    white-space: nowrap;
}

.cm-tlf-strategy--region .cm-tlf-heading-line span {
    color: var(--cm-canvas-gold);
}

.cm-strategies .cm-canvas-rule {
    width: 86px;
    height: 1px;
    margin: 26px 0 38px;
    background: var(--cm-canvas-gold);
}

.cm-tlf-strategy p {
  max-width: 660px;
  margin: 0 0 34px;
  color: var(--cm-canvas-paper-2);
}

.cm-tlf-strategy p:last-of-type {
    margin-bottom: 54px;
}


.cm-strategies-link,
.cm-strategies-link:visited {
  display: inline-flex;
  align-items: center;
  gap: 0;
  color: var(--cm-canvas-paper-2);
  white-space: normal;
  text-decoration: none;
  background-image: none;
  transition:
        transform 0.22s ease,
        color 0.22s ease;
}

.cm-strategies-link:hover,
.cm-strategies-link:focus-visible {
    color: var(--cm-canvas-gold);
    transform: translateY(-1px);
}

.cm-strategies-link__copy {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    color: inherit !important;
}

.cm-strategies-link .cm-strategies-link__line {
    display: inline;
    color: inherit !important;
    background-image: linear-gradient(var(--cm-canvas-gold), var(--cm-canvas-gold));
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 0 1px;
    transition: background-size 0.22s ease;
}

.cm-strategies-link:hover .cm-strategies-link__line,
.cm-strategies-link:focus-visible .cm-strategies-link__line {
    background-size: 100% 1px;
}

.cm-strategies-link__soon {
  display: inline-flex;
  align-self: flex-start;
  margin-top: 12px;
  padding: 5px 11px 4px;
  border: 1px solid rgba(184, 146, 74, 0.62);
  border-radius: 999px;
  color: var(--cm-canvas-gold);
}

.cm-strategies-link > span[aria-hidden="true"] {
    display: inline-flex;
    align-items: center;
    margin-left: 26px;
    color: currentColor;
    font-size: 1.18em;
    line-height: 1;
    transition: transform 0.22s ease;
}

.cm-strategies-link:hover > span[aria-hidden="true"],
.cm-strategies-link:focus-visible > span[aria-hidden="true"] {
    transform: translateX(7px);
}

.cm-tlf-strategy__figure {
    margin: 0;
    position: relative;
    z-index: 2;
    overflow: hidden;
    background: rgba(255, 254, 249, 0.04);
}

.cm-tlf-strategy__figure::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8, 15, 20, 0.02), rgba(8, 15, 20, 0.18));
    pointer-events: none;
}

.cm-tlf-strategy__figure img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: fill;
    transition: transform 0.5s ease, filter 0.5s ease;
}

.cm-tlf-strategy__figure:hover img,
.cm-tlf-strategy__figure:focus-within img {
    transform: scale(1.015);
    filter: saturate(1.04) contrast(1.02);
}

.cm-tlf-strategy__figure--region {
    align-self: start;
    justify-self: end;
    width: 545px;
    height: 767px;
    margin-right: calc((100vw - var(--cm-canvas-shell)) / -2 + 100px);
    margin-top: 2px;
}

.cm-tlf-strategy__figure--cornerstone {
    width: min(544.5px, 100%);
    aspect-ratio: 513 / 768;
    height: auto;
    margin-left: calc((100vw - var(--cm-canvas-shell)) / -2 + 100px);
}

.cm-tlf-strategy__figure--opportunistic {
    justify-self: end;
    width: 545px;
    height: 766px;
    margin-right: calc((100vw - var(--cm-canvas-shell)) / -2 + 100px);
}

.cm-strategies-rule {
    position: absolute;
    z-index: 1;
    height: 5px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(184, 146, 74, 0), rgba(184, 146, 74, 0.98) 18%, rgba(184, 146, 74, 0.98));
}

.cm-strategies-rule--right {
    right: calc((100vw - var(--cm-canvas-shell)) / -2 - 8px);
    bottom: 146px;
    width: min(1240px, 94vw);
}

.cm-strategies-rule--left {
    left: calc((100vw - var(--cm-canvas-shell)) / -2 - 8px);
    bottom: 74px;
    width: min(1240px, 94vw);
    background: linear-gradient(90deg, rgba(184, 146, 74, 0.98), rgba(184, 146, 74, 0.98) 82%, rgba(184, 146, 74, 0));
}

.cm-strategies .cm-footer {
    background: var(--cm-canvas-paper);
}

@media (max-width: 1100px) {
    :root {
        --cm-canvas-shell: min(97vw, 980px);
    }

    .cm-strategies-hero__copy {
        padding-top: 280px;
    }

    .cm-tlf-strategy,
    .cm-tlf-strategy--cornerstone {
        grid-template-columns: 1fr;
        row-gap: 54px;
        padding: 100px 0 160px;
    }

    .cm-tlf-strategy--cornerstone .cm-tlf-strategy__figure {
        order: 2;
    }

    .cm-tlf-strategy__figure--region,
    .cm-tlf-strategy__figure--cornerstone,
    .cm-tlf-strategy__figure--opportunistic {
        width: 100%;
        height: auto;
        max-height: none;
        /* Desktop side-offsets otherwise bleed the image 84px off one edge
           and leave a dark gap on the other once the grid stacks. */
        margin-left: 0;
        margin-right: 0;
    }

    .cm-tlf-strategy p {
        max-width: 720px;
    }

    .cm-strategies-rule {
        bottom: 80px;
    }
}

@media (max-width: 720px) {
    :root {
        /* 20px gutters, consistent with the rest of the site at phone widths. */
        --cm-canvas-shell: calc(100vw - 40px);
    }

    .cm-strategies-hero {
        min-height: 740px;
    }

    /* Stronger (same-color) scrim: the gold "Purpose." otherwise sits on
       bright snow at phone widths. */
    .cm-strategies-hero::after {
        background:
            linear-gradient(90deg, rgba(8, 15, 20, 0.5) 0%, rgba(8, 15, 20, 0.28) 55%, rgba(8, 15, 20, 0.06) 85%, rgba(8, 15, 20, 0) 100%),
            linear-gradient(180deg, rgba(8, 15, 20, 0.32) 0%, rgba(8, 15, 20, 0.04) 40%);
    }

    .cm-strategies-hero__image {
        min-height: 740px;
    }

    .cm-strategies-hero__copy {
        padding-top: 250px;
    }

    .cm-strategies-hero h1 {
        font-size: 43px;
    }

    .cm-strategies .cm-canvas-eyebrow {
        gap: 16px;
        font-size: 11px;
        letter-spacing: var(--cm-letter-eyebrow);
    }

    .cm-strategies .cm-canvas-eyebrow::after {
        width: 92px;
    }

    .cm-tlf-strategy h2 {
        font-size: 32px;
        letter-spacing: 0.075em;
    }

    .cm-tlf-strategy p {
        margin-bottom: 24px;
        font-size: 16px;
        line-height: 1.48;
    }

    .cm-tlf-strategy p:last-of-type {
        margin-bottom: 38px;
    }

    .cm-strategies-link {
        align-items: center;
        min-height: 44px;
        font-size: 16px;
        letter-spacing: var(--cm-letter-button);
    }

    .cm-strategies-link__soon {
        margin-top: 9px;
        padding: 4px 9px 3px;
        font-size: 9px;
        letter-spacing: var(--cm-letter-stat-label);
    }

    .cm-strategies-link > span[aria-hidden="true"] {
        margin-left: 16px;
    }

    .cm-tlf-strategy,
    .cm-tlf-strategy--cornerstone {
        padding-top: 28px;
        padding-bottom: 72px;
    }

    .cm-strategies-rule {
        bottom: 22px;
    }

    .cm-strategies-rule--right {
        right: -20px;
    }
}

.cm-strategies-hero__copy,
.cm-tlf-strategy__copy,
.cm-tlf-strategy__figure,
.cm-strategies-rule {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.72s ease,
    transform 0.72s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .cm-strategies-hero__copy.is-reveal-pending,
  .cm-tlf-strategy__copy.is-reveal-pending,
  .cm-tlf-strategy__figure.is-reveal-pending,
  .cm-strategies-rule.is-reveal-pending {
    opacity: 0;
    transform: translateY(28px);
  }

  /* A translated final rule sits below main's clipped edge, so the observer
     never sees it. Fade decorative rules in at their final position. */
  .cm-strategies-rule.is-reveal-pending {
    transform: none;
  }
}

.cm-strategies-hero__copy.is-visible,
.cm-tlf-strategy__copy.is-visible,
.cm-tlf-strategy__figure.is-visible,
.cm-strategies-rule.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .cm-strategies-hero__copy,
  .cm-tlf-strategy__copy,
  .cm-tlf-strategy__figure,
  .cm-strategies-rule {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Approved mobile hero treatment: contrast follows the copy, not the photo. */
@media (max-width: 767px) {
  .cm-strategies-hero::after {
    background: none;
  }

  .cm-strategies-hero h1 {
    position: relative;
    isolation: isolate;
    text-shadow: 0 2px 4px rgba(8, 15, 20, 0.4),
      0 0 18px rgba(8, 15, 20, 0.45);
  }

  .cm-strategies-hero h1::before {
    content: "";
    position: absolute;
    inset: -48px 8px -32px -20px;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(
      ellipse at 38% 45%,
      rgba(8, 15, 20, 0.62) 0%,
      rgba(8, 15, 20, 0.42) 42%,
      rgba(8, 15, 20, 0) 72%
    );
    filter: blur(16px);
  }
}
