/* ==================================================
   JNashConsulting site layer
   Extends the existing visual system without replacing it.
   ================================================== */
@font-face {
    font-family: '5thAve';
    src: url('../fonts/5th-Ave/5thAvenue_Regular.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: '5thAve';
    src: url('../fonts/5th-Ave/5thAvenue_Italic.ttf') format('truetype');
    font-weight: 600;
    font-style: italic;
    font-display: swap;
}

h1,
h2,
h2.mb20 {
    font-family: 'Montserrat-black',sans-serif;
    letter-spacing: 0;
    line-height: 1.2em;
}

h1 {
    font-size: 4.5rem;
    letter-spacing: -1px;
    font-family: '5thAve',serif;
}

img {
    max-width: 100%;
}

/* Theme #wrapper { overflow: hidden } clips recaptcha’s absolutely positioned iframe. */
#wrapper {
    overflow: visible;
}

.eyebrow {
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 12px;
    margin-bottom: 18px !important;
    color: #eb3349;
    line-height: 1.5em;
}

.story-card p.eyebrow {
    font-weight: 700;
}

.text-light .eyebrow {
    color: rgba(255, 255, 255, .7);
}

.lede,
.section-lede {
    font-size: 18px;
    line-height: 1.7em;
    max-width: 720px;
}

.section-lede.centered {
    margin-left: auto;
    margin-right: auto;
}

.section-testimonials {
    padding: 20px 0 0 !important;
}

.trust-line {
    margin-top: 28px;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 700;
    opacity: .8;
}

.hero-actions a {
    margin: 0 8px 12px 8px;
}

.brand-line {
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 11px;
    font-weight: 700;
    opacity: .55;
}

/* Navigation CTA */

#mainmenu {
    font-size: 13px;
}

#mainmenu li a:after {
    margin-left: 14px;
}

#mainmenu li.nav-cta {
    margin-left: 8px;
}

#mainmenu li.nav-cta a {
    padding: 8px 20px;
    margin-top: 32px;
    line-height: 1.2;
    border: 1px solid #fff;
    border-radius: 40px;
    background: #fff;
    color: #111 !important;
    min-width: auto;
}

#mainmenu li.nav-cta a:after {
    display: none;
}

.de_light #mainmenu li.nav-cta a:hover,
.de_light #mainmenu li.nav-cta a.active {
    background: #eb3349;
    border-color: #eb3349;
    color: #fff !important;
}

#mainmenu li.nav-cta a:hover,
#mainmenu li.nav-cta a.active {
    background: #eb3349;
    border-color: #eb3349;
    color: #fff !important;
}

header.smaller #mainmenu li.nav-cta a {
    margin-top: 22px;
    padding: 6px 18px;
    background: #111;
    border-color: #111;
    color: #fff !important;
}

header.header-mobile #mainmenu li.nav-cta a {
    display: inline-block;
    margin: 12px 20px 12px 0;
    text-align: center;
    width: calc(100% - 50px);
}

.header-container {
    width: 100%;
}

.menu-toggle {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
    appearance: none;
    -webkit-appearance: none;
}

.header-mobile .container .row {
    margin: 0 -35px 0 !important;
    max-width: none !important;
    width: calc(100% + 60px);
}

/* Buttons */

a.btn-filled,
.btn-filled {
    display: inline-block;
    padding: 13px 30px;
    border-radius: 40px;
    background: #fff;
    color: #111;
    font-weight: bold;
    font-size: 13px;
    text-transform: uppercase;
    text-decoration: none;
    border: solid 1px #fff;
}

a.btn-filled:hover,
.btn-filled:hover {
    background: #eb3349;
    border-color: #eb3349;
    color: #fff;
}

a.btn-filled-accent,
.btn-filled-accent {
    display: inline-block;
    padding: 20px 30px;
    border-radius: 40px;
    background: #eb3349;
    color: #fff;
    font-weight: bold;
    font-size: 13px;
    text-transform: uppercase;
    text-decoration: none;
    border: solid 1px #eb3349;
}

a.btn-filled-accent:hover,
.btn-filled-accent:hover {
    background: #111;
    border-color: #111;
    color: #fff;
}

.btn-border.btn-dark {
    display: block;
    margin-top: 20px;
    text-align: center;
    background: #222;
    color: #fff !important;
}

a.btn-border.btn-dark:hover {
    background: #212121;
    color: #fff;
}

.cta a.btn-filled {
    margin-right: 20px;
}

.cta a.btn-border {
    color: #fff;
}

.cta a.btn-border:hover {
    color: #111;
}

/* Experience strip */

.experience-label {
    display: block;
    margin-bottom: 28px;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-size: 11px;
    font-weight: 700;
    color: #eb3349;
}

.trust-line a {
    color: inherit;
    text-decoration: underline;
}

.logo-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
}

.logo-grid-select {
    grid-template-columns: repeat(5, 1fr);
    margin-top: 28px;
}

.hp-field {
    position: absolute !important;
    left: -10000px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
    padding: 0;
    margin: -1px;
    pointer-events: none;
}

.brochure__form__captcha {
    display: block;
    position: relative;
    width: 304px;
    min-height: 78px;
    margin: 8px 0 4px;
    overflow: visible;
    color-scheme: light;
    background: transparent;
    border-radius: 3px;
}

.brochure__form__captcha iframe {
    display: block !important;
    width: 304px !important;
    height: 78px !important;
    max-width: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    background: transparent !important;
    border: none !important;
}

.logo-grid .logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: solid 1px #ccc;
    border-radius: 10px;
    min-height: 110px;
}

.logo-grid img {
    max-width: 140px;
    width: auto;
    height: auto;
    object-fit: contain;
}

p.footnote {
    width: 100% !important;
    font-size: 12px;
    line-height: 1.3em;
    text-align: left;
    margin: 20px 0 40px;
}

@media (max-width: 991px) {
    .logo-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 575px) {
    .logo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .logo-grid .logo-item {
        min-height: 88px;
        padding: 16px 12px;
    }

    .logo-grid img {
        max-width: 110px;
        max-height: 40px;
    }
}

/* Cards */

.story-card,
.service-card,
.insight-card,
.stat-card,
.case-preview,
.faq-item,
.venture-card,
.case-frame-window {
    background: #fff;
    border: solid 1px #ccc;
    border-radius: 10px;
    padding: 30px;
    height: 100%;
    box-shadow: 2px 2px 6px rgba(0,0,0,0.2)
}
.case-preview .btn-border.btn-dark {
    display: block;
    margin-top: 20px;
    text-align: center;
    background: #222;
    color: #fff;
}
.story-card {
    color: #111;
    background: #fff;
}
ul.deliverable-list {
    color: #fff;
}
#section-difference .story-card {
    background: #333 !important;
}
#section-difference .story-card p {
    color: #fff;
}
.story-card img {
    margin: -30px -30px 20px -30px;
    max-width: calc(100% + 60px);
    position: relative;
}
.service-card {
    position: relative;
    overflow: hidden;
}
.service-card a.btn-border.btn-dark {
    margin-top: 20px;
    display: inline-block;
}
.service-card h3 {
    font-size: 2.25em;
}
.story-card h3 {
    color: #fff;
}
.story-card p {
    margin: 0;
}

.text-light .story-card,
.text-light .service-card,
.text-light .stat-card,
.text-light .case-preview {
    background: rgba(255, 255, 255, .04);
    border-color: rgba(255, 255, 255, .08);
}

.text-light .story-card h3,
.text-light .service-card h3,
.text-light .stat-card h3,
.text-light .case-preview h3,
.text-light .insight-card h3 {
    color: #fff;
}
.story-card h3 {
    color: #111;
    font-family: 'Montserrat-black';
}
.story-card h3,
.service-card h3,
.insight-card h3,
.case-preview h3 {
    margin-top: 0;
    margin-bottom: 16px;
}

.story-card .btn-border.btn-dark {
    width: 100%;
    margin-top: 24px;
    display:block;
    text-align: center;
}


.case-preview.has-media {
    padding: 0;
    overflow: hidden;
}

.case-preview-media {
    aspect-ratio: 16 / 9;
    border-radius: 10px 10px 0 0;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f4f4f4;
    overflow: hidden;
}

.case-preview.has-media .case-preview-copy {
    padding: 28px 30px 30px;
}

.insight-card.has-media {
    padding: 0;
    overflow: hidden;
}

.insight-card-media {
    aspect-ratio: 3 / 2;
    border-radius: 10px 10px 0 0;
    border-bottom: 1px solid #eee;
    overflow: hidden;
    background: #f4f4f4;
}

.insight-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.insight-card.has-media .insight-card-copy {
    padding: 28px 30px 30px;
}

.insight-card .btn-border {
    margin-top: 8px;
}

.service-card ul,
.service-row ul {
    margin: 0 0 24px 18px;
    padding: 0;
}

.service-row {
    display: flex;
    align-items: flex-start;
    gap: 48px;
    background: #fff;
    border: solid 1px #eee;
    border-radius: 10px;
    padding: 40px 40px;
    margin-bottom: 24px;
}

.service-row-copy {
    flex: 0 0 42%;
    max-width: 42%;
}

.service-row-copy h3 {
    margin-top: 0;
    margin-bottom: 16px;
}

.service-row ul {
    flex: 1;
    margin: 0 0 0 18px;
}

.service-row li {
    break-inside: avoid;
}

@media (max-width: 991px) {
    .service-row {
        display: block;
        padding: 32px 28px;
    }

    .service-row-copy {
        flex: none;
        max-width: none;
        margin-bottom: 24px;
    }

    .service-row ul {
        columns: 1;
        margin-left: 18px;
    }
}

.service-card li,
.service-row li,
.deliverable-list li {
    margin-bottom: 8px;
}
.service-card li {
    list-style: none;
}
.service-card li::before {
    content: '';
    margin: 0 8px -2px 0;
    background-image: url(../images/ui/check-mark.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center center;
    width: 16px;
    height: 16px;
    display: inline-block;
    opacity: 0.6;
}

.price-note {
    font-weight: 700;
    color: #212121;
    font-size: 24px;
    font-family: 'Montserrat-black', sans-serif;
    font-weight: 600;
}

.story-card .price-note {
    margin: 30px 0 24px;
    font-size: 1.25em;
}

/* Homepage engagement pricing table */
.plan-table {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    align-items: stretch;
    margin-bottom: 40px;
    padding-top: 16px;
}

.plan-card {
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    background: #fff;
    color: #111;
    border: solid 1px #ccc;
    border-radius: 16px;
    padding: 36px 28px 32px;
    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.12);
}

.plan-card.is-featured {
    border-width: 2px;
    padding-top: 56px;
    box-shadow: 4px 10px 24px rgba(0, 0, 0, 0.16);
    transform: translateY(-12px);
}

.plan-badge {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    margin: 0;
    padding: 10px 16px;
    background: #111;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-align: center;
}

.plan-card .eyebrow {
    margin: 20px 0 20px !important;
    font-weight: 700;
    font-size: 1em;
}

.plan-card h3 {
    margin: 0 0 16px;
    font-size: 26px;
    line-height: 1.25em;
    font-family: 'Montserrat-black', sans-serif;
    color: #111;
}

.plan-price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px 10px;
    margin: 0 0 12px;
}

.plan-amount {
    font-family: 'Montserrat-black', sans-serif;
    font-size: 40px;
    line-height: 1;
    color: #111;
    margin-bottom: 10px;
}

.plan-cadence {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #888;
}

.plan-summary {
    margin: 0 0 24px;
    color: #555;
    line-height: 1.6em;
}

.plan-card .plan-cta {
    display: block;
    width: 100%;
    margin: 0 0 28px;
    text-align: center;
    box-sizing: border-box;
    background: #111;
    border-color: #111;
    color: #fff;
}

.plan-card .plan-cta:hover {
    background: #eb3349;
    border-color: #eb3349;
    color: #fff;
}

.plan-card.is-featured .plan-cta {
    background: #eb3349;
    border-color: #eb3349;
    color: #fff;
}

.plan-card.is-featured .plan-cta:hover {
    background: #111;
    border-color: #111;
}

.plan-features-label {
    margin: 0 0 12px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #111;
}

.plan-features {
    list-style: none;
    margin: 0;
    padding: 0;
}

.plan-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 10px;
    color: #444;
    line-height: 1.45em;
}

.plan-features li:last-child {
    margin-bottom: 0;
}

.plan-features li::before {
    content: '';
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    border-radius: 50%;
    background-color: #111;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M3.5 8.5l3 3 6-6'/></svg>");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 10px;
}

.plan-card.is-featured .plan-features li::before {
    background-color: #eb3349;
}

.text-light .price-note {
    color: #fff;
}

.card-tags {
    margin: 18px 0 24px;
}

.card-tags span {
    display: inline-block;
    margin: 0 8px 8px 0;
    padding: 4px 20px;
    border: solid 1px #aaa;
    border-radius: 40px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.text-light .card-tags span {
    border-color: rgba(255, 255, 255, .25);
}

.session-prompt {
    margin-top: 40px;
    padding-top: 30px;
    border-top: solid 1px #eee;
    text-align: center;
}

.text-light .session-prompt {
    border-top-color: rgba(255, 255, 255, .12);
}

/* Process */

.process-step {
    margin-bottom: 30px;
}

.process-step .num {
    display: block;
    font-size: 48px;
    font-weight: 700;
    color: #eb3349;
    margin-bottom: 8px;
    letter-spacing: 1px;
    font-family: '5thAve',serif;
}

.process-step h3 {
    margin-bottom: 10px;
}
.process-step p {
    color: #fff;
}
#section-process h2,
#section-process h3 {
    color: #fff !important;
}

/* Testimonials */

.quote-block {
    margin-bottom: 40px;
    display: grid;
    grid-template-columns: 0.3fr 0.8fr;
}

.quote-block img {
    border-radius: 99px;
    border: 3px solid #fff;
    width: 150px;
    height: auto;
    overflow: hidden;
    filter: grayscale(1);
}

.quote-block blockquote {
    margin: 0 0 -30px 0;
    padding: 15px 0 0;
    border: 0;
    font-size: 28px;
    line-height: 1.4em;
    font-weight: 400;
    font-family: 'Montserrat-black', sans-serif;
    color: #fff;
}

@media (max-width: 991px) {
    .quote-block {
        grid-template-columns: 1fr;
    }
    .quote-block cite {
        margin-top: 40px;
    }
}

.quote-block cite {
    display: block;
    font-style: normal;
    font-size: 18px;
    font-weight: 700;
    color: rgba(255, 255, 255, .7);
}

.quote-block cite span {
    display: block;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.2;
    opacity: .8;
}

/* Stats */

.stat-card h3 {
    font-size: 28px;
    margin-bottom: 8px;
}

.stat-card p {
    margin: 0;
}

/* Page intro */

.page-intro {
    padding: 170px 0 90px;
}

.page-intro.has-image {
    position: relative;
    background-color: #111;
    background-size: cover;
    background-repeat: no-repeat;
}

.page-intro.has-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
}

.page-intro.has-image .container {
    position: relative;
    z-index: 1;
}

.page-intro h1 {
    margin-bottom: 18px;
}

.page-intro p {
    font-size: 18px;
    line-height: 1.7em;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

/* Article */

.article-body {
    max-width: 740px;
    margin: 0 auto;
    font-size: 18px;
    line-height: 1.8em;
}

.article-body h2 {
    margin-top: 40px;
    margin-bottom: 16px;
}

.article-body p {
    margin-bottom: 20px;
}

.article-body ul,
.article-body ol {
    margin-bottom: 24px;
}

.article-body img {
    max-width: 100%;
    height: auto;
}

/* Patents */

.patent-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.patent-item {
    padding: 40px 0 100px;
    border-bottom: 1px solid #ccc;
}

.patent-item:first-child {
    padding-top: 0;
}

.patent-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.patent-item.has-diagram {
    display: grid;
    grid-template-areas:
        "heading figures"
        "body figures";
    column-gap: 36px;
    row-gap: 0;
    align-items: start;
}

.patent-heading {
    grid-area: heading;
}

.patent-figures {
    grid-area: figures;
}

.patent-body {
    grid-area: body;
}

.patent-item h2 {
    margin: 0 0 12px;
    font-size: 32px;
    line-height: 1.25em;
}

.patent-meta {
    margin: 0 0 16px;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 700;
    color: #666;
}

.patent-doc {
    display: inline-block;
    margin-bottom: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 12px;
}

.patent-body p {
    margin: 0;
    font-size: 16px;
    line-height: 1.7em;
}

.patent-figure {
    margin: 0 0 12px;
}

.patent-figure:last-child {
    margin-bottom: 0;
}

.patent-figure-plate {
    display: block;
    background: #fff;
    border: solid 1px #eee;
    border-radius: 10px;
    padding: 20px;
    overflow: hidden;
    cursor: zoom-in;
}

.patent-figure-plate img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    margin: 0 auto;
}

.patent-figure-plate:hover,
.patent-figure-plate:focus-visible {
    border-color: #eb3349;
}

.patent-figure-plate:focus-visible {
    outline: 2px solid #eb3349;
    outline-offset: 3px;
}

.patent-figure figcaption {
    margin-top: 12px;
    font-size: 13px;
    line-height: 1.6em;
    color: #666;
}

.patent-figure-dialog {
    border: 0;
    padding: 24px;
    background: transparent;
    max-width: min(960px, calc(100vw - 32px));
    max-height: calc(100vh - 32px);
}

.patent-figure-dialog::backdrop {
    background: rgba(17, 17, 17, 0.72);
}

.patent-figure-dialog-plate {
    background: #fff;
    border: solid 1px #eee;
    border-radius: 10px;
    padding: 24px 28px 28px;
    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.2);
}

.patent-figure-dialog-close {
    display: block;
    margin: 0 0 16px auto;
    padding: 0;
    border: 0;
    background: none;
    font-family: inherit;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 12px;
    color: #666;
    cursor: pointer;
}

.patent-figure-dialog-close:hover,
.patent-figure-dialog-close:focus-visible {
    color: #eb3349;
}

.patent-figure-dialog img {
    display: block;
    max-width: 100%;
    height: auto;
    max-height: calc(100vh - 180px);
    margin: 0 auto;
}

.patent-figure-dialog-caption {
    margin: 16px 0 0;
    font-size: 13px;
    line-height: 1.6em;
    color: #666;
    text-align: center;
}

/* Work sections */

.work-grid .picframe {
    margin-bottom: 30px;
}

.col-lg-4.col-md-6 {
    margin-bottom: 20px;
}

.venture-card {
    padding: 30px;
    border: solid 1px #ccc;
    border-radius: 10px;
    height: 100%;
    margin-bottom: 30px;
}

.venture-label {
    display: block;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 11px;
    font-weight: 700;
    color: #eb3349;
    margin-bottom: 10px;
}

/* FAQ */

.faq-item {
    margin-bottom: 16px;
    padding: 0;
}

.faq-item summary {
    cursor: pointer;
    list-style: none;
    padding: 22px 28px;
    font-weight: 700;
    color: #212121;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item p {
    padding: 0 28px 24px;
    margin: 0;
}

/* Side-by-side content */

.split-copy h3 {
    margin-top: 28px;
}

.split-copy h3:first-child {
    margin-top: 0;
}

.not-included {
    opacity: .85;
}

/* Footer */

footer .brand-line {
    margin-bottom: 8px;
}

footer a {
    color: #fff;
}

.footer-links a {
    margin-right: 18px;
    color: #fff !important;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
}

/* Form helpers */

.de_form label,
.de_form .brochure__form__captcha-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.confirm-copy {
    font-size: 16px;
    line-height: 1.7em;
}

.mb30 { margin-bottom: 30px; }
.mb40 { margin-bottom: 40px; }
.mt20 { margin-top: 20px; }

/* Case study media */

.case-media-section {
    background: #fafafa;
}

.case-frame {
    margin: 0 0 8px;
}

.case-frame-window {
    background: #fff;
    border: solid 1px #eee;
    border-radius: 10px;
    padding: 0;
    overflow: hidden;
}
.case-frame-window img {
    max-width: 100%;
}

.case-frame-chrome {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 14px;
    background: #fff;
    border-bottom: solid 1px #eee;
}

.case-frame-chrome i {
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ddd;
}

.case-frame-surface {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f4f4f4;
    overflow: hidden;
}

.case-frame-wide .case-frame-surface,
.case-frame-browser .case-frame-surface {
    aspect-ratio: 4 / 3;
}

.case-frame-photo .case-frame-surface {
    aspect-ratio: 3 / 2;
}

.case-frame-contain .case-frame-surface {
    aspect-ratio: 4 / 3;
    background: #fff;
}

.case-frame-device .case-frame-surface {
    aspect-ratio: 9 / 16;
    background: #111;
}

.case-frame-browser .case-frame-surface {
    background: #111;
    aspect-ratio: revert-rule;
    min-height: 500px;
}

.case-frame-surface img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.case-frame-contain .case-frame-surface img {
    object-fit: contain;
    padding: 28px;
}

.case-frame-browser .case-frame-surface img {
    height: auto;
    width: revert-rule;
    position: relative;
    top: 150px;
    left: 0;
}

.case-preview-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.case-preview-media[data-kind="Screenshot"]:not(:has(img)) {
    background: #111;
}

.case-preview-media[data-kind="Screenshot"]:not(:has(img))::before {
    color: rgba(255, 255, 255, .55);
}

.case-frame-surface:not(:has(img)),
.case-preview-media:not(:has(img)) {
    flex-direction: column;
    gap: 10px;
    padding: 24px;
}

.case-frame-surface:not(:has(img))::before,
.case-preview-media:not(:has(img))::before {
    content: attr(data-kind);
    letter-spacing: 4px;
    text-transform: uppercase;
    font-size: 11px;
    font-weight: 700;
    color: #eb3349;
}

.case-frame-browser .case-frame-surface:not(:has(img))::before,
.case-frame-device .case-frame-surface:not(:has(img))::before {
    color: rgba(255, 255, 255, .55);
}

.case-frame figcaption {
    margin-top: 14px;
    font-size: 13px;
    line-height: 1.6em;
    color: #666;
}

.case-device-row {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 1199px) {
    #mainmenu {
        font-size: 12px;
    }

    #mainmenu li a:after {
        margin-left: 10px;
    }

    #mainmenu li.nav-cta a {
        padding: 7px 14px;
    }
}

@media (max-width: 991px) {
    h1 {
        font-size: 3rem;
        line-height: 1.15em;
    }

    .quote-block blockquote {
        font-size: 22px;
    }

    .hero-actions a {
        display: block;
        margin: 0 auto 12px auto;
        max-width: 280px;
    }

    .story-card,
    .service-card,
    .insight-card,
    .stat-card,
    .case-preview {
        margin-bottom: 24px;
    }

    .plan-table {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .plan-card.is-featured {
        transform: none;
        order: -1;
        padding-top: 56px;
    }

    .case-device-row {
        max-width: none;
    }
    .page-intro {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .patent-item h2 {
        font-size: 26px;
    }

    .patent-item.has-diagram {
        display: block;
    }

    .patent-figures {
        margin: 8px 0 24px;
    }
}

button.pf-click {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    position: relative;
    text-align: left;
}

/* React site: the theme hid the body until jQuery ran. Show it immediately. */
html,
body {
    display: block !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html,
    body {
        scroll-behavior: auto;
    }
}

section[id],
#top {
    scroll-margin-top: 90px;
}

body.de_light {
    background: #fff;
}

.full-height {
    min-height: 100vh;
    height: 100vh;
}

/* Header logo
   The theme hides .logo-2 until scroll (header.smaller) or jQuery adds
   header-mobile. React does not load that script, so keep a mark visible
   and stop overflow/max-width/padding from clipping it. */
header {
    overflow: visible;
}

header div#logo {
    z-index: 2;
    width: 160px;
    margin-top: 0 !important;
    overflow: visible;
}

header div#logo a {
    display: block;
    width: 150px;
}

header div#logo img {
    display: block;
    width: 150px !important;
    max-width: 150px !important;
    min-width: 150px;
    height: auto !important;
}

header #logo .logo {
    display: inline-block;
}

header #logo .logo-2 {
    display: none;
}

header.smaller #logo .logo,
header.header-mobile #logo .logo {
    display: none;
}

header.smaller #logo .logo-2,
header.header-mobile #logo .logo-2 {
    display: inline-block;
}

@media (max-width: 993px) {
    #wrapper {
        overflow: visible;
    }

    header,
    header.header-mobile,
    header.smaller {
        display: block;
        position: relative !important;
        top: 0 !important;
        padding-top: 0;
        padding-bottom: 0;
        overflow: visible;
        z-index: 10000;
        pointer-events: auto;
    }

    header.header-mobile {
        height: 70px;
    }

    header .container,
    header .row,
    header .col-md-12 {
        overflow: visible;
        position: static;
        width: 100%;
        max-width: 100%;
    }

    header .header-container {
        display: grid;
        grid-template-columns: auto auto;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        min-height: 70px;
        column-gap: 12px;
    }

    header .header-container #logo {
        justify-self: start;
        position: relative !important;
    }

    header .header-container #menu-btn {
        justify-self: end;
        margin-left: auto;
    }

    header div#logo {
        position: relative !important;
        display: flex;
        align-items: center;
        grid-column: 1;
        height: auto;
        width: 130px;
        line-height: 1;
        top: auto;
        margin-top: 0 !important;
    }

    header.header-mobile #logo {
        margin-top: 0 !important;
    }

    header div#logo a {
        display: flex;
        align-items: center;
        width: 120px;
    }

    header div#logo img {
        width: 120px !important;
        max-width: 120px !important;
        min-width: 120px;
        height: auto !important;
    }

    header .menu-toggle {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
        appearance: none;
        -webkit-appearance: none;
    }

    header #menu-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
        float: none !important;
        grid-column: 2;
        justify-self: end;
        margin: 0 0 0 auto;
        color: #111;
        z-index: 10002;
        cursor: pointer;
        pointer-events: auto;
        appearance: none;
        -webkit-appearance: none;
        background: transparent;
        border: 0;
        padding: 10px;
        width: 44px;
        height: 44px;
        line-height: 1;
        touch-action: manipulation;
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0.12);
        position: relative;
        -webkit-user-select: none;
        user-select: none;
    }

    header #menu-btn:before {
        display: none !important;
    }

    header .menu-btn-bars {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 22px;
        height: 16px;
        pointer-events: none;
    }

    header .menu-btn-bars span {
        display: block;
        width: 100%;
        height: 2px;
        background: #111;
        border-radius: 1px;
    }

    header nav,
    header #mainmenu {
        display: none;
    }

    header.menu-open,
    header:has(#menu-toggle:checked) {
        height: auto;
        min-height: 70px;
        overflow: visible;
        z-index: 10000;
    }

    header.menu-open nav,
    header nav.menu-panel-open,
    #menu-toggle:checked ~ nav {
        display: block !important;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        width: 100%;
        background: #111;
        z-index: 10001;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        pointer-events: auto;
    }

    header.menu-open #mainmenu,
    header.menu-open #mainmenu.menu-panel-open,
    #menu-toggle:checked ~ nav #mainmenu {
        display: block !important;
        margin-top: 0 !important;
        padding: 12px 0 8px;
        background: #111;
        position: relative;
        z-index: 10001;
    }

    header.menu-open #mainmenu li,
    #menu-toggle:checked ~ nav #mainmenu li {
        border-bottom-color: #333;
        padding-left: 20px;
    }

    header.menu-open #mainmenu a,
    header.menu-open.smaller.scroll-light #mainmenu a,
    header.header-mobile.menu-open #mainmenu a,
    header.header-mobile.menu-open.smaller.scroll-light #mainmenu a,
    #menu-toggle:checked ~ nav #mainmenu a {
        color: #fff;
    }

    header.menu-open #mainmenu li.nav-cta a,
    header.menu-open.smaller #mainmenu li.nav-cta a,
    header.header-mobile.menu-open #mainmenu li.nav-cta a,
    header.header-mobile.menu-open.smaller #mainmenu li.nav-cta a,
    #menu-toggle:checked ~ nav #mainmenu li.nav-cta a {
        background: #fff;
        border-color: #fff;
        color: #111 !important;
    }

    header #logo .logo {
        display: none;
    }

    header #logo .logo-2 {
        display: inline-block;
    }
    #menu-toggle:checked ~ nav #mainmenu li a {
        font-size: 1.2em;
        display: block;
        text-align: center;
    }
    #menu-toggle:checked ~ nav #mainmenu li.nav-cta {
        padding: 10px 20px;
    }

    #menu-toggle:checked ~ nav #mainmenu li.nav-cta a {
        margin: 0 auto !important;
        max-width: 400px;
        text-align: center;
    }

    h2.mb20 {
        font-size: 2.5em;
    }

}

header.menu-open #mainmenu,
header.menu-open #mainmenu.menu-panel-open,
#menu-toggle:checked ~ nav #mainmenu {
    display: block !important;
}

#back-to-top.is-visible {
    display: block;
}
