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

:root {
    --cm-canvas-ink: #061014;
    --cm-canvas-ink-2: #07151b;
    --cm-canvas-paper: #f4efe7;
    --cm-canvas-paper-2: #fbfaf6;
    --cm-canvas-gold: #bd9348;
    --cm-canvas-gold-soft: rgba(189, 147, 72, 0.56);
    --cm-canvas-line: rgba(189, 147, 72, 0.52);
    --cm-canvas-text: #0d1b24;
    --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);
    font-family: "Raleway", sans-serif;
    font-weight: 300;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.cm-strategies .cm-header {
    background: var(--cm-canvas-ink);
    border-bottom-color: rgba(251, 250, 246, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.cm-strategies .cm-header-inner {
    max-width: 100%;
}

.cm-strategies .cm-header-logo::after {
    color: #FFFFFF;
}

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

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

.cm-strategies .cm-header-nav a.cm-nav-cta {
    background: transparent;
    border-color: rgba(251, 250, 246, 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 {
    background: var(--cm-canvas-gold);
    border-color: var(--cm-canvas-gold);
    color: var(--cm-canvas-paper-2);
}

.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(6, 16, 20, 0.34) 0%, rgba(6, 16, 20, 0.08) 44%, rgba(6, 16, 20, 0) 72%),
        linear-gradient(180deg, rgba(6, 16, 20, 0.3) 0%, rgba(6, 16, 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);
}

.cm-strategies-hero h1,
.cm-tlf-strategy h2,
.cm-tlf-strategy h2 span {
    margin: 0;
    font-family: "Raleway", sans-serif;
    font-weight: 300;
    letter-spacing: 0.1em;
    line-height: 1.18;
    text-transform: uppercase;
}

.cm-strategies-hero h1 {
    color: var(--cm-canvas-paper-2);
    font-size: clamp(50px, 4.85vw, 68px);
    line-height: 1.27;
}

.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);
    font-family: "Raleway", sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 9px;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
}

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

.cm-tlf-strategy h2 {
    color: var(--cm-canvas-paper-2);
    font-size: clamp(48px, 4.35vw, 64px);
}

.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);
    font-family: "Raleway", sans-serif;
    font-size: clamp(17px, 1.34vw, 21px);
    font-weight: 300;
    line-height: 1.56;
    letter-spacing: 0.01em;
}

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

.cm-tlf-strategy em {
    font-style: italic;
}

.cm-strategies-link,
.cm-strategies-link:visited {
    display: inline-flex;
    align-items: center;
    gap: 0;
    color: var(--cm-canvas-paper-2);
    font-family: "Raleway", sans-serif;
    font-size: clamp(24px, 2.15vw, 31px);
    font-weight: 400;
    letter-spacing: 0.24em;
    line-height: 1.3;
    white-space: normal;
    text-decoration: none;
    text-transform: uppercase;
    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--disabled {
    cursor: default;
}

.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(189, 147, 72, 0.62);
    border-radius: 999px;
    color: var(--cm-canvas-gold);
    font-size: clamp(10px, 0.8vw, 12px);
    font-weight: 500;
    letter-spacing: 0.22em;
    line-height: 1;
    text-transform: uppercase;
}

.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(251, 250, 246, 0.04);
}

.cm-tlf-strategy__figure::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(6, 16, 20, 0.02), rgba(6, 16, 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(189, 147, 72, 0), rgba(189, 147, 72, 0.98) 18%, rgba(189, 147, 72, 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(189, 147, 72, 0.98), rgba(189, 147, 72, 0.98) 82%, rgba(189, 147, 72, 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;
    }

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

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

@media (max-width: 720px) {
    :root {
        --cm-canvas-shell: calc(100vw - 16px);
    }

    .cm-strategies .cm-header-logo-image {
        height: 48px;
    }

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

    .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: 0.26em;
    }

    .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 {
        font-size: 16px;
        letter-spacing: 0.14em;
    }

    .cm-strategies-link__soon {
        margin-top: 9px;
        padding: 4px 9px 3px;
        font-size: 9px;
        letter-spacing: 0.17em;
    }

    .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-hero__copy,
.cm-tlf-strategy__copy,
.cm-tlf-strategy__figure,
.cm-strategies-rule {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.72s ease,
    transform 0.72s ease;
}

.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;
  }
}

/* Mobile nav parity: keep non-homepage header/menu legible against the dark Chase Merritt chrome. */
@media screen and (max-width: 900px) {
  .cm-nav-toggle span,
  .cm-header:not(.is-scrolled) .cm-nav-toggle span {
    background: #fbfaf6 !important;
  }

  .cm-header-nav,
  .cm-header:not(.is-scrolled) .cm-header-nav,
  .cm-header-nav.is-open,
  .cm-header:not(.is-scrolled) .cm-header-nav.is-open {
    background: rgba(6, 16, 20, 0.96) !important;
    border-bottom-color: rgba(251, 250, 246, 0.12) !important;
  }

  .cm-header .cm-header-nav a,
  .cm-header:not(.is-scrolled) .cm-header-nav a {
    color: #fbfaf6 !important;
    text-shadow: none !important;
  }

  .cm-header .cm-header-nav a:hover,
  .cm-header .cm-header-nav a.active,
  .cm-header:not(.is-scrolled) .cm-header-nav a:hover,
  .cm-header:not(.is-scrolled) .cm-header-nav a.active {
    color: #bd9348 !important;
  }

  .cm-header .cm-header-nav a.cm-nav-cta,
  .cm-header:not(.is-scrolled) .cm-header-nav a.cm-nav-cta {
    background: rgba(251, 250, 246, 0.14) !important;
    border-color: rgba(251, 250, 246, 0.42) !important;
    color: #ffffff !important;
  }
}

/* Mobile header geometry parity: keep logo and hamburger anchored like the homepage while preserving page-specific colors. */
@media screen and (max-width: 1120px) {
  .cm-header-inner {
    max-width: none !important;
    height: 74px !important;
    padding: 0 24px !important;
  }
}

@media screen and (max-width: 900px) {
  .cm-header-logo {
    width: 292px !important;
    height: 42px !important;
  }

  .cm-header-logo::before {
    width: 260px !important;
  }

  .cm-header-logo::after {
    font-size: 18px !important;
    letter-spacing: 5px !important;
  }

  .cm-nav-toggle {
    width: 38px !important;
    padding: 8px !important;
    margin: 0 -16px 0 0 !important;
    align-items: stretch !important;
    justify-content: center !important;
    flex: 0 0 auto !important;
  }

  .cm-nav-toggle span {
    width: 22px !important;
    height: 1.5px !important;
  }
}

