/*!
 * CatEye Website - "Modern" theme (loaded after site.css)
 *
 * Concept: night vision. Mostly light pages with deep-indigo "night" bands;
 * the amber of the logo's eyes marks only what needs attention. The hero
 * shows imagery through a cat's-eye lens that dilates open once on load.
 *
 * Palette   night #191433 · violet #6239BD · amber #F2C230 · mist #F1F2F8 · ink #24263A · slate #5E6378
 * Type      Bricolage Grotesque (condensed, display) + IBM Plex Sans (text)
 */

/* ------------------------------------------------------------------ tokens */
.theme-modern {
    --night: #191433;
    --night-2: #231b4a;
    --violet: #6239bd;
    --violet-deep: #4a2a99;
    --amber: #f2c230;
    --mist: #f1f2f8;
    --ink: #24263a;
    --slate: #5e6378;
    --line: #dfe1ec;

    --c-primary: var(--violet);
    --c-primary-dark: var(--violet-deep);
    --c-accent: var(--amber);
    --c-link: var(--violet);
    --c-link-hover: var(--violet-deep);
    --c-heading: var(--ink);
    --c-subheading: var(--ink);
    --c-text: var(--slate);
    --c-border: var(--line);
    --c-soft: var(--mist);
    --f-head: 'Bricolage Grotesque', 'Arial Narrow', sans-serif;
    --f-body: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --container: 1240px;
    --gap: 5%;
    --header-h: 84px;
    --radius: 12px;

    font-size: 17px;
    line-height: 1.65;
    color: var(--slate);
}
.theme-modern ::selection { background: var(--amber); color: var(--night); }

/* -------------------------------------------------------------- typography */
.theme-modern h1, .theme-modern h2, .theme-modern h3,
.theme-modern h4, .theme-modern h5, .theme-modern h6 {
    font-family: var(--f-head);
    font-weight: 700;
    font-stretch: 82%;
    letter-spacing: -0.012em;
    color: var(--ink);
    text-wrap: balance;
}
.theme-modern h1 { font-size: clamp(2.6rem, 5.2vw, 4.4rem); line-height: 1; }
.theme-modern h2 { font-size: clamp(2.1rem, 4vw, 3.3rem); line-height: 1.04; }
.theme-modern h3 { font-size: clamp(1.45rem, 2.1vw, 1.8rem); line-height: 1.2; letter-spacing: -0.005em; }
.theme-modern h4 { font-size: 1.3rem; line-height: 1.25; }
.theme-modern h5 { font-size: 1.12rem; line-height: 1.3; }
.theme-modern h6 { font-size: 1rem; line-height: 1.35; }
.theme-modern p, .theme-modern li { text-wrap: pretty; }
.theme-modern p { margin-bottom: 1.15em; }
.theme-modern strong, .theme-modern b { color: inherit; font-weight: 600; }
.theme-modern a { transition: color .2s; }
.theme-modern :focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 4px; }

/* Justified text from the old site reads poorly on the web: align left */
.theme-modern [style*="text-align: justify"],
.theme-modern [style*="text-align:justify"] { text-align: left !important; }

/* Keep long text lines readable (under ~80 characters) */
.theme-modern .ce-section .ce-container > :is(p, ul, ol, blockquote),
.theme-modern .ce-section .ce-col-1-1 > :is(p, ul, ol) { max-width: 46rem; }
.theme-modern .ce-section .ce-container > :is(p, h1, h2, h3)[style*="center"],
.theme-modern .ce-section .ce-container > p.ce-subheadline[style*="center"] { margin-left: auto; margin-right: auto; }

/* Links inside running text */
.theme-modern .ce-section :is(p, li, td) > a:not(.ce-btn):not(.ce-more),
.theme-modern .entry-content a:not(.ce-btn) {
    color: var(--violet);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}
.theme-modern .ce-text-light :is(p, li, td) > a:not(.ce-btn):not(.ce-more) { color: var(--amber); }

/* ------------------------------------------------------------------ header */
.theme-modern .site-header {
    background: rgba(255, 255, 255, .88);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    backdrop-filter: saturate(160%) blur(14px);
    box-shadow: 0 1px 0 var(--line);
}
.theme-modern .site-header.is-stuck { box-shadow: 0 1px 0 var(--line), 0 12px 32px rgba(25, 20, 51, .08); }
.theme-modern .header-inner { gap: 28px; height: var(--header-h); }
.theme-modern .site-header.is-stuck .header-inner { height: 70px; }
.theme-modern .site-logo { gap: 12px; color: var(--ink); text-decoration: none; }
.theme-modern .site-logo img,
.theme-modern .site-header.is-stuck .site-logo img { width: 46px; height: 46px; }
.mx-wordmark { display: flex; flex-direction: column; line-height: 1; font-family: var(--f-head); }
.mx-wordmark b { font-size: 21px; font-weight: 800; font-stretch: 84%; letter-spacing: .03em; color: var(--ink); }
.mx-wordmark span { font-size: 10.5px; font-weight: 600; letter-spacing: .34em; color: var(--slate); margin-top: 4px; }

.theme-modern .site-nav { margin-left: auto; }
.theme-modern .site-nav .menu > li > a,
.theme-modern .site-header.is-stuck .site-nav .menu > li > a {
    font-family: var(--f-body); font-size: 13.5px; font-weight: 500; letter-spacing: .05em;
    line-height: var(--header-h); padding: 0 13px; color: var(--ink); box-shadow: none;
}
.theme-modern .site-header.is-stuck .site-nav .menu > li > a { line-height: 70px; }
.theme-modern .site-nav .menu > li > a i { font-size: 10px; margin-top: 0; opacity: .6; }
.theme-modern .site-nav .menu > li:hover > a,
.theme-modern .site-nav .menu > li > a:focus { color: var(--violet); }
.theme-modern .site-nav .menu > li.is-active > a { color: var(--violet); box-shadow: none; }
.theme-modern .site-nav .menu > li.is-active > a::after {
    content: ''; position: absolute; left: 50%; bottom: calc(50% - 17px); width: 5px; height: 5px; margin-left: -2.5px;
    border-radius: 50%; background: var(--amber);
}
.theme-modern .site-nav .menu > li > a { position: relative; }
.theme-modern .site-nav .sub-menu {
    top: calc(100% - 16px); min-width: 250px; padding: 8px; border-top: 0; border-radius: 14px;
    box-shadow: 0 0 0 1px var(--line), 0 24px 60px rgba(25, 20, 51, .16);
}
.theme-modern .site-nav .sub-menu a {
    border: 0; border-radius: 8px; padding: 10px 14px;
    font-size: 14px; letter-spacing: .02em; color: var(--ink);
}
.theme-modern .site-nav .sub-menu a:hover,
.theme-modern .site-nav .sub-menu .is-active > a { background: var(--mist); color: var(--violet); }

.mx-cta {
    display: inline-flex; align-items: center; flex-shrink: 0;
    padding: 11px 20px; border-radius: 999px;
    background: var(--night); color: #fff; font: 600 14px/1 var(--f-body); text-decoration: none;
    transition: background .2s, color .2s;
}
.mx-cta:hover { background: var(--violet); color: #fff; }
.mx-cta-mobile { display: none; }
.theme-modern .nav-toggle { order: 3; }

/* Header floating over the hero */
.theme-modern.has-hero .site-header { position: fixed; left: 0; right: 0; top: 0; }
.theme-modern.has-hero .site-header:not(.is-stuck):not(.nav-open) {
    background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none;
}
.theme-modern.has-hero .site-header:not(.is-stuck):not(.nav-open) :is(.site-nav .menu > li > a, .mx-wordmark b) { color: #fff; }
.theme-modern.has-hero .site-header:not(.is-stuck):not(.nav-open) .mx-wordmark span { color: rgba(255, 255, 255, .6); }
.theme-modern.has-hero .site-header:not(.is-stuck):not(.nav-open) .site-nav .menu > li:hover > a { color: var(--amber); }
.theme-modern.has-hero .site-header:not(.is-stuck):not(.nav-open) .mx-cta { background: var(--amber); color: var(--night); }
.theme-modern.has-hero .site-header:not(.is-stuck):not(.nav-open) .mx-cta:hover { background: #fff; }
.theme-modern.has-hero .site-header:not(.is-stuck):not(.nav-open) :is(.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after) { background: #fff; }

/* -------------------------------------------------------------------- hero */
.theme-modern .mx-hero {
    --lens-h: min(60vh, 540px);
    height: clamp(560px, 88vh, 860px);
    min-height: 0;
    max-height: none;
    color: #fff;
    background:
        radial-gradient(900px 560px at 80% 40%, rgba(98, 57, 189, .55), transparent 62%),
        radial-gradient(640px 420px at 6% 100%, rgba(116, 197, 218, .10), transparent 60%),
        var(--night);
}
.theme-modern .mx-hero:not(.is-full-height) { height: clamp(520px, 74vh, 720px); --lens-h: min(52vh, 460px); }
.theme-modern .mx-hero .ce-slide::after { display: none; }
.theme-modern .mx-hero .ce-slide-inner {
    display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); align-items: center; gap: 6%;
    padding-top: var(--header-h);
}
.theme-modern .mx-hero .ce-slide-text { max-width: 640px; }
.theme-modern .mx-hero .ce-slide-title {
    font-family: var(--f-head); font-weight: 800; font-stretch: 76%;
    font-size: clamp(2.8rem, 6.2vw, 5.6rem); line-height: .93; letter-spacing: -.012em;
    color: #fff; margin: 0 0 8px;
}
.theme-modern .mx-hero .ce-slide-title span[style] { color: var(--amber) !important; }
.theme-modern .mx-hero .ce-slide-rule { width: 56px; border-top: 3px solid var(--amber); margin: 26px 0; }
.theme-modern .mx-hero .ce-slide-sub { font-size: clamp(1.05rem, 1.35vw, 1.22rem); line-height: 1.6; color: rgba(255, 255, 255, .78); max-width: 34rem; }
.theme-modern .mx-hero .ce-slide-title + .ce-btn { margin-top: 26px; }
.theme-modern .ce-slide.is-active .ce-slide-text > * { animation: none; }

/* The cat's-eye lens */
.mx-lens { position: relative; justify-self: center; height: var(--lens-h); aspect-ratio: .74; }
.mx-lens::before, .mx-lens::after { content: ''; position: absolute; border-radius: 50%; pointer-events: none; }
.mx-lens::before { inset: -16px; border: 1px solid rgba(242, 194, 48, .6); }
.mx-lens::after { inset: -40px; border: 1px solid rgba(255, 255, 255, .08); }
.mx-lens-media {
    position: absolute; inset: 0; border-radius: 50%;
    background: var(--violet-deep) center / cover no-repeat;
    clip-path: ellipse(50% 50% at 50% 50%);
}
.mx-lens-media.is-graphic {
    display: grid; place-items: center;
    background-color: var(--violet-deep);
    background-image: radial-gradient(circle at 50% 38%, #7c55df, var(--violet-deep) 72%);
    background-blend-mode: soft-light;
}
.mx-lens-media.is-graphic img { width: 76%; height: auto; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .3)); }
@media (prefers-reduced-motion: no-preference) {
    .mx-hero .ce-slide:first-child .mx-lens-media { animation: mx-dilate 1.7s cubic-bezier(.2, .75, .1, 1) .2s both; }
    .mx-hero .ce-slide:first-child .mx-lens::before { animation: mx-ring 1.7s ease .2s both; }
}
@keyframes mx-dilate {
    from { clip-path: ellipse(2.5% 46% at 50% 50%); filter: brightness(1.7) saturate(.3); }
    to { clip-path: ellipse(50% 50% at 50% 50%); filter: none; }
}
@keyframes mx-ring { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }

/* Slide progress */
.theme-modern .mx-hero .ce-hero-arrow { display: none; }
.theme-modern .mx-hero .ce-hero-dots {
    left: 50%; right: auto; bottom: 34px; transform: translateX(-50%);
    width: 100%; max-width: var(--container); padding: 0 var(--gutter); justify-content: flex-start; gap: 10px;
}
.theme-modern .mx-hero .ce-hero-dots button {
    width: 56px; height: 22px; border: 0; border-radius: 0; background: transparent; padding: 0; position: relative;
}
.theme-modern .mx-hero .ce-hero-dots button span {
    position: absolute; left: 0; right: 0; top: 50%; height: 3px; margin-top: -1.5px;
    border-radius: 2px; background: rgba(255, 255, 255, .22); overflow: hidden;
}
.theme-modern .mx-hero .ce-hero-dots button span::after {
    content: ''; position: absolute; inset: 0; background: var(--amber); transform: scaleX(0); transform-origin: left;
}
.theme-modern .mx-hero .ce-hero-dots button.is-active span::after { animation: mx-progress var(--hero-ms, 7000ms) linear both; }
.theme-modern .mx-hero.is-paused .ce-hero-dots button.is-active span::after { animation-play-state: paused; }
@keyframes mx-progress { to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) {
    .theme-modern .mx-hero .ce-hero-dots button.is-active span::after { animation: none; transform: scaleX(1); }
}

/* ----------------------------------------------------------------- sections */
.theme-modern .ce-section { padding: clamp(64px, 8vw, 112px) 0; }

/* Photo and colour bands from the old site become "night" bands */
.theme-modern .ce-section.ce-text-light {
    background-color: var(--night) !important;
    background-blend-mode: luminosity !important;
    color: rgba(255, 255, 255, .76);
    isolation: isolate;
}
.theme-modern .ce-section.ce-text-light::before {
    content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background: linear-gradient(100deg, rgba(25, 20, 51, .96) 0%, rgba(25, 20, 51, .9) 45%, rgba(25, 20, 51, .74) 100%);
}
.theme-modern .ce-section.ce-text-light[style*="#6239bd"] { background-color: var(--violet-deep) !important; }
.theme-modern .ce-section.ce-text-light[style*="#6239bd"]::before {
    background: linear-gradient(125deg, rgba(74, 42, 153, .94), rgba(98, 57, 189, .86));
}
.theme-modern .ce-section > :is(.ce-container, .ce-container-fluid) { position: relative; z-index: 1; }
.theme-modern .ce-text-light :is(h1, h2, h3, h4, h5, h6) { color: #fff; }
/* Translucent white panels the old design put behind content on photo bands */
.theme-modern .ce-text-light .ce-col:is([style*="rgba(255,255,255"], [style*="rgba(255, 255, 255"]) { background: transparent !important; padding: 0 !important; }
.theme-modern .ce-section.ce-text-light :is(p, li)[style*="color"] { color: rgba(255, 255, 255, .8) !important; }

/* Pale grey bands become mist */
.theme-modern .ce-section:is([style*="#f4f6f7"], [style*="#f6f6f6"], [style*="#eff1f2"], [style*="#f7f7f7"], [style*="#f2f2f2"]) {
    background-color: var(--mist) !important;
}

/* --------------------------------------------------------- titles & rules */
.theme-modern .ce-title { margin-bottom: 22px; }
.theme-modern .ce-title-lines::before,
.theme-modern .ce-title-lines::after { display: none; }
.theme-modern .ce-section:not(.ce-text-light) [style*="#74c5da"]:not(hr) { color: var(--violet) !important; }
.theme-modern .ce-text-light [style*="#74c5da"]:not(hr) { color: var(--amber) !important; }
.theme-modern hr.ce-sep {
    border: 0 !important; height: 3px; width: 56px; max-width: 56px !important; border-radius: 2px;
    background: var(--violet); margin-top: 0 !important; margin-bottom: 34px !important;
}
.theme-modern .ce-text-light hr.ce-sep { background: var(--amber); }
.theme-modern .ce-spacer[style*="height:10px"] { display: none; }
.theme-modern .ce-headline { font-size: clamp(2.2rem, 4.2vw, 3.5rem); line-height: 1.02; font-stretch: 80%; }
.theme-modern .ce-headline strong, .theme-modern .ce-headline b { font-weight: 800; color: var(--violet); }
.theme-modern .ce-subheadline { font-size: 1.12rem; line-height: 1.7; color: var(--slate); max-width: 50rem; }
.theme-modern .ce-widget-title { font-size: 1.6rem; }

/* ----------------------------------------------------------------- buttons */
.theme-modern :where(.ce-btn, .ce-form button[type="submit"], .ce-section input[type="submit"]) {
    font-family: var(--f-body); font-size: 15px; font-weight: 600; letter-spacing: .01em; text-transform: none;
    padding: 14px 26px; border-radius: 999px; background: var(--violet); border: 2px solid var(--violet); color: #fff;
}
.theme-modern :where(.ce-btn, .ce-form button[type="submit"], .ce-section input[type="submit"]):hover {
    background: var(--night); border-color: var(--night); color: #fff;
}
.theme-modern .ce-btn-lg { font-size: 16px; padding: 17px 32px; }
.theme-modern .ce-btn-small { font-size: 14px; padding: 10px 18px; }
.theme-modern .ce-text-light .ce-btn,
.theme-modern .mx-btn-amber { background: var(--amber); border-color: var(--amber); color: var(--night); }
.theme-modern .ce-text-light .ce-btn:hover,
.theme-modern .mx-btn-amber:hover { background: #fff; border-color: #fff; color: var(--night); }
.theme-modern .ce-btn-outline-dark { background: transparent; color: var(--ink); border-color: var(--line); }
.theme-modern .ce-more { font-size: 15px; font-weight: 600; color: var(--violet); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.theme-modern .ce-more::after { content: none; }

/* ------------------------------------------------------- lists and boxes */
.theme-modern .ce-checklist li { gap: 14px; align-items: flex-start; }
.theme-modern .ce-checklist li > i {
    flex: 0 0 30px; height: 30px; line-height: 30px; border-radius: 50%; font-size: 12.5px; margin-top: -1px;
    background: rgba(98, 57, 189, .1); color: var(--violet);
}
.theme-modern .ce-text-light .ce-checklist li > i { background: rgba(242, 194, 48, .14); color: var(--amber); }

.theme-modern .ce-boxes { gap: 0 5%; }
.theme-modern .ce-box { padding: 26px 0; }
.theme-modern .ce-boxes-side .ce-box + .ce-box { border-top: 1px solid var(--line); }
.theme-modern .ce-text-light .ce-boxes-side .ce-box + .ce-box { border-top-color: rgba(255, 255, 255, .1); }
.theme-modern .ce-box-icon,
.theme-modern .ce-box-icon.ce-icon-circle {
    width: 56px; height: 56px; border-radius: 16px; font-size: 21px;
    border: 0 !important; box-shadow: none;
    background: rgba(98, 57, 189, .1) !important; color: var(--violet) !important;
}
.theme-modern .ce-text-light .ce-box-icon { background: rgba(242, 194, 48, .12) !important; color: var(--amber) !important; }
.theme-modern .ce-box-title { font-size: 1.45rem; line-height: 1.2; font-weight: 700; }
.theme-modern .ce-boxes-side .ce-box-body { padding-left: 80px; }
.theme-modern .ce-box-link:hover .ce-box-title { color: var(--violet); }
.theme-modern .ce-text-light .ce-box-link:hover .ce-box-title { color: var(--amber); }

/* Feature grids: open columns divided by hairlines, not boxed cards */
.theme-modern .ce-features { gap: 40px 0; }
.theme-modern .ce-features-top .ce-feature { text-align: left; padding: 4px 32px; border-left: 1px solid var(--line); }
.theme-modern .ce-text-light .ce-features-top .ce-feature { border-left-color: rgba(255, 255, 255, .12); }
.theme-modern .ce-feature-icon {
    width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%;
    font-size: 24px; margin-bottom: 22px; background: var(--mist); color: var(--violet) !important;
}
.theme-modern .ce-text-light .ce-feature-icon { background: rgba(255, 255, 255, .08); color: var(--amber) !important; }
.theme-modern .ce-feature-title { font-size: 1.2rem; font-weight: 700; letter-spacing: .01em; }
.theme-modern .ce-feature-text { font-size: 15.5px; line-height: 1.7; }

/* ------------------------------------------------------------------ people */
.theme-modern .ce-person { text-align: left; border-bottom: 0; padding-bottom: 0; }
.theme-modern .ce-person-photo { margin-bottom: 20px; }
.theme-modern .ce-person-photo img {
    width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
    border-radius: 999px 999px 18px 18px;
}
.theme-modern .ce-person-name { font-size: 1.45rem; letter-spacing: .01em; }
.theme-modern .ce-person-role { font-family: var(--f-body); font-size: 15px; color: var(--slate); margin-bottom: 10px; }
.theme-modern .ce-social { justify-content: flex-start; }
.theme-modern .ce-social a {
    width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%;
    border: 1px solid var(--line); color: var(--ink); font-size: 14px;
}
.theme-modern .ce-social a:hover { background: var(--night); border-color: var(--night); color: #fff; }

/* ------------------------------------------------------------ testimonials */
.theme-modern .ce-testimonials { max-width: 880px; }
.theme-modern .ce-testimonial { text-align: left; }
.theme-modern .ce-testimonial blockquote {
    position: relative; background: none; border: 0; padding: .95em 0 0;
    font-family: var(--f-head); font-stretch: 94%; font-weight: 500; font-style: normal;
    font-size: clamp(1.3rem, 2.3vw, 1.85rem); line-height: 1.38; letter-spacing: -.005em; color: #fff;
}
.theme-modern .ce-section:not(.ce-text-light) .ce-testimonial blockquote { color: var(--ink); }
.theme-modern .ce-testimonial blockquote::before {
    content: '\201C'; position: absolute; left: -.04em; top: -.2em;
    font-size: 3.6em; line-height: 1; color: var(--amber);
}
.theme-modern .ce-testimonial blockquote::after { display: none; }
.theme-modern .ce-testimonial blockquote p { margin-bottom: .6em; }
.theme-modern .ce-testimonial figcaption { margin-top: 26px; font-size: 15px; color: rgba(255, 255, 255, .7); }
.theme-modern .ce-testimonial figcaption strong { color: #fff; font-weight: 600; letter-spacing: 0; }
.theme-modern .ce-section:not(.ce-text-light) .ce-testimonial figcaption strong { color: var(--ink); }
.theme-modern .ce-testimonial-dots { justify-content: flex-start; margin-top: 30px; }
.theme-modern .ce-testimonial-dots button { width: 34px; height: 3px; border-radius: 2px; }

/* ------------------------------------------------------------------- logos */
.theme-modern .ce-logos img { filter: grayscale(1); opacity: .6; max-height: 72px; }
.theme-modern .ce-logos a:hover img, .theme-modern .ce-logos img:hover { filter: none; opacity: 1; transform: none; }

/* ------------------------------------------------------------- blog posts */
.theme-modern .ce-posts { gap: 56px 5%; }
.theme-modern .ce-post-thumb { border-radius: 16px; aspect-ratio: 16 / 10; margin-bottom: 20px; }
.theme-modern .ce-post-title { font-size: clamp(1.4rem, 2vw, 1.75rem); line-height: 1.18; font-weight: 700; margin-bottom: 10px; }
.theme-modern .ce-post-title a { color: var(--ink); }
.theme-modern .ce-post-title a:hover { color: var(--violet); }
.theme-modern .ce-post-meta { font-size: 14px; color: var(--slate); }
.theme-modern .ce-post-meta a { color: var(--slate); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.theme-modern .ce-post-meta .sep { color: var(--line); margin: 0 10px; }
.theme-modern .ce-post-excerpt { font-size: 16px; }
.theme-modern .ce-posts-large .ce-post-card { border-radius: 22px; padding: 40px 40px 32px; box-shadow: 0 30px 80px rgba(8, 5, 26, .35); }
.theme-modern .ce-text-light .ce-posts-large .ce-post-card .ce-post-title a { color: var(--ink); }
.theme-modern .ce-text-light .ce-posts-large .ce-post-card .ce-more { color: var(--violet); }
.theme-modern .ce-posts-large .ce-post-more { text-align: left; }
.theme-modern .ce-posts-list .ce-post-card { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 5%; align-items: center; }
.theme-modern .ce-posts-list .ce-post-thumb { aspect-ratio: 4 / 3; border-radius: 20px; }
.theme-modern .ce-pagination a, .theme-modern .ce-pagination span { border-radius: 999px; min-width: 44px; height: 44px; }

/* ----------------------------------------------------------- page header */
.theme-modern .page-header {
    background: radial-gradient(900px 420px at 88% 0%, rgba(98, 57, 189, .6), transparent 62%), var(--night);
    padding: clamp(64px, 9vw, 120px) 0 clamp(48px, 6vw, 80px);
}
.theme-modern .page-header .page-title { font-size: clamp(2.5rem, 5vw, 4.2rem); font-weight: 800; font-stretch: 78%; line-height: 1; }
.theme-modern .page-header-label { text-transform: none; letter-spacing: 0; font-size: 15px; color: var(--amber); margin-bottom: 14px; }
.theme-modern .page-header-label a { color: var(--amber); }

/* ------------------------------------------------------------- single post */
.theme-modern .single-post-article { padding: clamp(48px, 6vw, 80px) 0 40px; }
.theme-modern .single-post-article > .ce-container { max-width: 880px; }
.theme-modern .post-featured img { border-radius: 22px; max-height: 480px; }
.theme-modern .post-title { font-size: clamp(2.2rem, 4.4vw, 3.4rem); line-height: 1.04; }
.theme-modern .entry-content :is(h1, h2) { font-size: clamp(1.9rem, 3.2vw, 2.5rem); line-height: 1.1; margin-top: 1.5em; }
.theme-modern .entry-content :is(h1, h2):first-child { margin-top: 0; }
.theme-modern .entry-content h3 { font-size: 1.5rem; margin-top: 1.4em; }
.theme-modern .post-share { border-radius: 18px; padding: 22px 26px; }
.theme-modern .post-share h4 { font-size: 1.15rem; }
.theme-modern .post-share a { border-radius: 50%; }
.theme-modern .post-tags a { border-radius: 999px; }
.theme-modern .post-nav { font-family: var(--f-head); font-stretch: 86%; font-weight: 600; font-size: 1.2rem; }

/* -------------------------------------------------------------------- jobs */
.theme-modern .ce-jobs { gap: 0; border-bottom: 1px solid var(--line); }
.theme-modern .ce-job { border: 0; border-top: 1px solid var(--line); padding: 28px 0; background: none; }
.theme-modern .ce-job:hover { box-shadow: none; transform: none; }
.theme-modern .ce-job:hover .ce-job-title a { color: var(--violet); }
.theme-modern .ce-job-title { font-size: 1.6rem; }
.theme-modern .ce-job-specs { color: var(--slate); }
.theme-modern .ce-job-specs i { color: var(--violet); }
.theme-modern .ce-job .ce-btn { background: transparent; color: var(--ink); border-color: var(--line); }
.theme-modern .ce-job .ce-btn:hover { background: var(--night); border-color: var(--night); color: #fff; }
.theme-modern .ce-job .ce-btn i { display: none; }
.theme-modern .job-summary { border-top: 0; border-radius: 20px; background: var(--mist); top: 100px; }
.theme-modern .job-summary h3 { font-size: 1.4rem; }
.theme-modern .job-apply { border-top-color: var(--line); }

/* ------------------------------------------------------------------- forms */
.theme-modern :is(.ce-form input[type="text"], .ce-form input[type="email"], .ce-form input[type="tel"], .ce-form input[type="file"],
.ce-form textarea, .ce-search-form input, .ce-section .form-control, .ce-section input[type="text"], .ce-section input[type="email"],
.ce-section input[type="tel"], .ce-section select, .ce-section textarea) {
    border-radius: 12px; border-color: #d5d8e5; min-height: 50px; font-family: var(--f-body);
}
.theme-modern :is(.ce-form, .ce-section form) :is(input, textarea, select):focus { border-color: var(--violet); box-shadow: 0 0 0 4px rgba(98, 57, 189, .14); }
.theme-modern .ce-form label, .theme-modern .ce-section form .col-25 label { font-weight: 600; color: var(--ink); }
.theme-modern .ce-notice { border-radius: 14px; }

/* ------------------------------------------------------- toggles & extras */
.theme-modern .ce-toggle summary { font-family: var(--f-head); font-stretch: 88%; font-weight: 600; font-size: 1.2rem; letter-spacing: 0; }
.theme-modern .ce-toggle summary::before { border-radius: 50%; background: var(--mist); color: var(--violet); font-weight: 600; }
.theme-modern .ce-counter-ring { --ring: var(--violet); font-family: var(--f-head); }
.theme-modern .ce-flip-front, .theme-modern .ce-flip-back { border-radius: 18px; }
.theme-modern .ce-flip-back { background: var(--violet) !important; }
.theme-modern .ce-video { border-radius: 18px; overflow: hidden; }
.theme-modern .ce-image img { border-radius: 14px; }
.theme-modern .ce-404-code { font-family: var(--f-head); font-weight: 800; font-stretch: 75%; color: var(--violet); }

/* ------------------------------------------------- closing call-to-action */
.mx-closing { background: var(--mist); padding: clamp(56px, 8vw, 104px) 0; border-top: 1px solid var(--line); }
.mx-closing-inner { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 32px 6%; align-items: end; }
.mx-closing h2 { font-size: clamp(2rem, 3.8vw, 3.2rem); line-height: 1.02; font-weight: 800; font-stretch: 80%; margin: 0; }
.mx-closing p { font-size: 1.08rem; margin: 0 0 22px; max-width: 30rem; }

/* ------------------------------------------------------------------ footer */
.mx-footer { background: var(--night); color: rgba(255, 255, 255, .66); padding: clamp(56px, 7vw, 88px) 0 0; font-size: 15px; line-height: 1.6; }
.mx-footer-grid { display: grid; grid-template-columns: minmax(230px, 1.5fr) repeat(auto-fit, minmax(150px, 1fr)); gap: 40px 4%; }
.mx-footer .site-logo { display: inline-flex; align-items: center; gap: 12px; color: #fff; }
.mx-footer .site-logo img { width: 50px; height: 50px; }
.mx-footer .mx-wordmark b { color: #fff; }
.mx-footer .mx-wordmark span { color: rgba(255, 255, 255, .5); }
.mx-footer-brand p { margin: 18px 0 20px; max-width: 26ch; }
.mx-footer :is(h3, .mx-footer-extra h4) {
    font-family: var(--f-body); font-size: 12.5px; font-weight: 600; letter-spacing: .08em; font-stretch: 100%;
    color: #fff; margin: 0 0 16px;
}
.mx-footer ul { list-style: none; margin: 0; padding: 0; }
.mx-footer li { margin-bottom: 10px; }
.mx-footer a { color: rgba(255, 255, 255, .72); text-decoration: none; }
.mx-footer a:hover { color: var(--amber); }
.mx-footer-extra .ce-row { display: block; margin: 0; }
.mx-footer-extra .ce-col { flex-basis: auto; }
.mx-footer-extra a { font-size: 14px; letter-spacing: .02em; }
.mx-social { display: flex; gap: 8px; }
.mx-social a {
    width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%;
    background: rgba(255, 255, 255, .08); color: #fff; font-size: 15px;
}
.mx-social a:hover { background: var(--amber); color: var(--night); }
.mx-footer-bottom {
    display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 30px;
    margin-top: 56px; padding-top: 22px; padding-bottom: 28px; border-top: 1px solid rgba(255, 255, 255, .1);
    font-size: 13.5px; color: rgba(255, 255, 255, .5);
}
.mx-footer-bottom p { margin: 0; }
.mx-footer .footer-menu { margin: 0; gap: 0 22px; }
.mx-footer .footer-menu a { color: rgba(255, 255, 255, .6); }
.theme-modern .to-top { width: 46px; height: 46px; border-radius: 50%; bottom: 24px; background: var(--night); box-shadow: 0 0 0 1px rgba(255, 255, 255, .1); }
.theme-modern .to-top:hover { background: var(--violet); }

/* -------------------------------------------------------------- responsive */
@media (max-width: 1180px) {
    .theme-modern .site-nav .menu > li > a { padding: 0 9px; font-size: 13px; }
}
@media (max-width: 1150px) {
    .theme-modern { --header-h: 72px; }
    .theme-modern .header-inner { gap: 14px; }
    .theme-modern .header-inner > .mx-cta { display: none; }
    .theme-modern .nav-toggle { margin-left: auto; }
    .theme-modern .site-nav { margin-left: 0; background: #fff; }
    .theme-modern .site-nav .menu > li > a,
    .theme-modern .site-header.is-stuck .site-nav .menu > li > a { line-height: 54px; font-size: 15px; color: var(--ink); }
    .theme-modern .site-nav .menu > li.is-active > a::after { display: none; }
    .theme-modern .site-nav .sub-menu { border-radius: 0; box-shadow: none; padding: 0 0 8px; background: var(--mist); }
    .theme-modern .site-nav .sub-menu a { padding-left: calc(var(--gutter) + 14px); }
    .mx-cta-mobile { display: inline-flex; margin: 16px var(--gutter) 22px; }
}
@media (max-width: 960px) {
    .theme-modern .mx-hero,
    .theme-modern .mx-hero:not(.is-full-height) { height: auto; min-height: 0; }
    .theme-modern .mx-hero .ce-slide { position: relative; display: none; inset: auto; }
    .theme-modern .mx-hero .ce-slide.is-active { display: block; }
    .theme-modern .mx-hero .ce-slide-inner { grid-template-columns: 1fr; gap: 36px; padding-top: calc(var(--header-h) + 36px); padding-bottom: 84px; }
    .theme-modern .mx-hero .mx-lens { order: -1; justify-self: start; --lens-h: 210px; margin-left: 16px; }
    .mx-closing-inner { grid-template-columns: 1fr; }
}
@media (max-width: 800px) {
    .theme-modern .ce-features-top .ce-feature { border-left: 0; border-top: 1px solid var(--line); padding: 28px 0 0; }
    .theme-modern .ce-text-light .ce-features-top .ce-feature { border-top-color: rgba(255, 255, 255, .12); }
    .theme-modern .ce-boxes-side .ce-box-body { padding-left: 0; }
    .theme-modern .ce-posts-list .ce-post-card { grid-template-columns: 1fr; }
    .theme-modern .ce-person-photo img { max-width: 320px; }
    .mx-footer-grid { grid-template-columns: 1fr 1fr; }
    .mx-footer-brand { grid-column: 1 / -1; }
    .mx-footer-bottom { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
    .mx-footer-grid { grid-template-columns: 1fr; }
}
.theme-modern .job-summary dt { text-transform: none; letter-spacing: 0; font-size: 13.5px; color: var(--slate); }
.theme-modern .job-summary dd { font-weight: 600; }
