:root {
    --cml-teal: #01927C;
    --cml-teal-dark: #01725f;
    --cml-teal-soft: rgba(1, 146, 124, 0.12);
    --cml-ink: #344646;
    --cml-deep: #2F3F3F;
    --cml-paper: #FEFEFE;
    --cml-mist: #f3f6f5;
    --cml-line: rgba(52, 70, 70, 0.12);
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--cml-paper);
    color: var(--cml-ink);
    font-family: "Montserrat", "Roboto", sans-serif;
    font-size: 16px;
    line-height: 1.65;
}

h1, h2, h3, h4, .cml-display {
    font-family: "Playfair Display", Georgia, serif;
    font-weight: 600;
    color: var(--cml-ink);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

a {
    color: var(--cml-teal);
}

.cml-main {
    min-height: 70vh;
}

/* Navbar */
.navbar-fixed {
    height: 88px;
}

nav.cml-nav,
nav.cml-nav .nav-wrapper {
    height: 88px;
    line-height: 88px;
    background: var(--cml-paper);
    box-shadow: 0 2px 18px rgba(47, 63, 63, 0.1);
    transition: box-shadow 0.35s ease;
}

nav.cml-nav.is-scrolled {
    box-shadow: 0 10px 28px rgba(47, 63, 63, 0.14);
}

nav.cml-nav ul li:not(:last-child) a {
    position: relative;
}

nav.cml-nav ul li:not(:last-child) a::after {
    content: "";
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 22px;
    height: 2px;
    background: var(--cml-teal);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.28s ease;
}

nav.cml-nav ul li.active:not(:last-child) a::after,
nav.cml-nav ul li:not(:last-child) a:hover::after {
    transform: scaleX(1);
}

nav.cml-nav .brand-logo {
    display: flex;
    align-items: center;
    height: 88px;
    color: var(--cml-teal);
}

nav.cml-nav .brand-logo img.cml-logo-header {
    height: 58px;
    width: auto;
    max-width: 360px;
    object-fit: contain;
}

nav.cml-nav .brand-logo img.cml-logo-stack {
    height: 56px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
}

nav.cml-nav ul a {
    color: var(--cml-ink);
    font-weight: 600;
    height: 88px;
    line-height: 88px;
}

nav.cml-nav ul a:hover,
nav.cml-nav ul li.active a {
    background: transparent;
    color: var(--cml-teal);
}

nav.cml-nav .button-collapse {
    color: var(--cml-ink);
}

nav.cml-nav .cml-nav-cta {
    background: var(--cml-teal);
    border-radius: 4px;
    margin: 26px 0 26px 12px;
    height: 36px;
    line-height: 36px;
    padding: 0 18px;
}

nav.cml-nav .cml-nav-cta:hover {
    background: var(--cml-teal-dark);
    color: var(--cml-paper);
}

.side-nav {
    background: var(--cml-deep);
}

.side-nav a {
    color: var(--cml-paper) !important;
}

.side-nav li.active {
    background: rgba(1, 146, 124, 0.2);
}

.side-nav .cml-side-brand {
    background: var(--cml-paper);
    padding: 20px 16px;
    border-bottom: 1px solid var(--cml-line);
}

.side-nav .cml-side-brand img {
    width: 100%;
    height: auto;
    max-height: 160px;
    object-fit: contain;
    display: block;
}

/* Buttons */
.btn.cml-btn,
.btn-large.cml-btn {
    background: var(--cml-teal);
    text-transform: none;
    font-weight: 700;
    letter-spacing: 0;
    box-shadow: none;
    border-radius: 4px;
}

.btn.cml-btn,
.btn-large.cml-btn,
.btn.cml-btn-ghost,
.btn-large.cml-btn-ghost,
.btn.cml-btn-ink {
    transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.btn.cml-btn:hover,
.btn-large.cml-btn:hover,
.btn.cml-btn-ink:hover,
.btn-large.cml-btn-ink:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(1, 146, 124, 0.28);
}

.btn.cml-btn:hover,
.btn-large.cml-btn:hover,
.btn.cml-btn:focus,
.btn-large.cml-btn:focus {
    background: var(--cml-teal-dark);
}

.btn.cml-btn-ghost,
.btn-large.cml-btn-ghost {
    background: transparent;
    color: var(--cml-paper);
    border: 1px solid rgba(254, 254, 254, 0.45);
    box-shadow: none;
    text-transform: none;
    font-weight: 700;
}

.btn.cml-btn-ghost:hover,
.btn-large.cml-btn-ghost:hover {
    background: rgba(254, 254, 254, 0.08);
}

.btn.cml-btn-ink {
    background: var(--cml-ink);
    color: var(--cml-paper);
    box-shadow: none;
    text-transform: none;
    font-weight: 700;
}

/* Hero */
.cml-hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    background:
        linear-gradient(115deg, rgba(47, 63, 63, 0.93) 0%, rgba(1, 146, 124, 0.48) 58%, rgba(52, 70, 70, 0.42) 100%),
        url("https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?auto=format&fit=crop&w=1800&q=80") center/cover no-repeat;
    background-size: cover;
    color: var(--cml-paper);
    overflow: hidden;
    animation: cml-hero-pan 22s ease-in-out infinite alternate;
}

.cml-hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 90px;
    background: var(--cml-paper);
    clip-path: polygon(0 70%, 100% 0, 100% 100%, 0 100%);
}

.cml-hero .container {
    position: relative;
    z-index: 2;
    padding-top: 48px;
    padding-bottom: 100px;
}

.cml-kicker {
    display: inline-block;
    color: #9fe3d8;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.cml-kicker.is-dark {
    color: var(--cml-teal);
}

.cml-hero h1 {
    color: var(--cml-paper);
    font-size: 3.4rem;
    max-width: 16ch;
    margin: 0 0 20px;
}

.cml-hero p.lead {
    max-width: 42rem;
    font-size: 1.15rem;
    color: rgba(254, 254, 254, 0.88);
    margin-bottom: 32px;
}

.cml-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.cml-hero-note {
    margin-top: 28px;
    color: rgba(254, 254, 254, 0.72);
    font-size: 0.95rem;
}

/* Sections */
.cml-section {
    padding: 88px 0;
}

.cml-section.alt {
    background: var(--cml-mist);
}

.cml-section.deep {
    background: var(--cml-deep);
    color: var(--cml-paper);
}

.cml-section.deep h2,
.cml-section.deep h3,
.cml-section.deep h4 {
    color: var(--cml-paper);
}

.cml-section.teal {
    background: var(--cml-teal);
    color: var(--cml-paper);
}

.cml-section.teal h2,
.cml-section.teal h3 {
    color: var(--cml-paper);
}

.cml-section-head {
    margin-bottom: 40px;
}

.cml-section-head h2 {
    font-size: 2.4rem;
    margin: 8px 0 12px;
}

.cml-section-head p {
    max-width: 42rem;
    font-size: 1.05rem;
    color: rgba(52, 70, 70, 0.78);
}

.cml-section.deep .cml-section-head p,
.cml-section.teal .cml-section-head p {
    color: rgba(254, 254, 254, 0.78);
}

/* Feature / product cards */
.cml-feature {
    background: var(--cml-paper);
    border-radius: 12px;
    padding: 28px 24px 24px;
    height: 100%;
    border: 1px solid var(--cml-line);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease, border-color 0.3s ease;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.cml-feature::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 0;
    background: var(--cml-teal);
    transition: height 0.4s ease;
}

.cml-feature:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 36px rgba(47, 63, 63, 0.12);
    border-color: rgba(1, 146, 124, 0.28);
}

.cml-feature:hover::before {
    height: 100%;
}

.cml-feature .cml-icon {
    transition: transform 0.35s ease, background 0.35s ease;
}

.cml-feature:hover .cml-icon {
    transform: translateY(-3px) rotate(-6deg);
    background: rgba(1, 146, 124, 0.2);
}

.cml-feature a.more {
    transition: gap 0.25s ease, color 0.25s ease;
}

.cml-feature:hover a.more {
    gap: 10px;
}

.cml-feature .cml-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: var(--cml-teal-soft);
    color: var(--cml-teal);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.cml-feature .cml-icon i {
    font-size: 26px;
}

.cml-feature h3 {
    font-size: 1.35rem;
    margin: 0 0 8px;
}

.cml-feature .subtitle {
    color: var(--cml-teal);
    font-weight: 700;
    font-size: 0.86rem;
    margin-bottom: 10px;
}

.cml-feature p {
    color: rgba(52, 70, 70, 0.78);
}

.cml-feature a.more {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 700;
    margin-top: 8px;
}

/* Stats */
.cml-stat {
    text-align: left;
    margin-bottom: 24px;
}

.cml-stat .value {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 2.6rem;
    color: var(--cml-teal);
    margin: 0;
    line-height: 1.1;
}

.cml-section.deep .cml-stat .value,
.cml-section.teal .cml-stat .value {
    color: #b7ebe3;
}

.cml-stat .label {
    font-weight: 700;
    margin-top: 8px;
}

.cml-stat .desc {
    color: rgba(52, 70, 70, 0.7);
    font-size: 0.95rem;
}

.cml-section.deep .cml-stat .desc {
    color: rgba(254, 254, 254, 0.7);
}

/* Quote / about split */
.cml-quote {
    border-left: 3px solid var(--cml-teal);
    padding: 4px 0 4px 18px;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.25rem;
    font-style: italic;
    color: var(--cml-ink);
    margin: 24px 0;
}

.cml-photo {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    min-height: 360px;
    background:
        linear-gradient(180deg, rgba(47, 63, 63, 0.05), rgba(47, 63, 63, 0.45)),
        url("https://images.unsplash.com/photo-1521791136064-7986c2920216?auto=format&fit=crop&w=1200&q=80") center/cover no-repeat;
    box-shadow: 0 20px 40px rgba(47, 63, 63, 0.18);
}

.cml-photo.office {
    background:
        linear-gradient(180deg, rgba(1, 146, 124, 0.05), rgba(47, 63, 63, 0.4)),
        url("https://images.unsplash.com/photo-1554224155-6726b3ff858f?auto=format&fit=crop&w=1200&q=80") center/cover no-repeat;
}

.cml-brand-lockup {
    width: 100%;
    max-width: 420px;
    height: auto;
    display: block;
    margin: 0 auto 24px;
    background: var(--cml-paper);
    padding: 16px;
}

.cml-brand-header {
    width: 100%;
    max-width: 520px;
    height: auto;
    display: block;
    margin: 0 auto;
    background: var(--cml-paper);
    padding: 12px;
}

.cml-photo-caption {
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 20px;
    color: var(--cml-paper);
    font-weight: 600;
}

/* Page banners */
.cml-page-hero {
    background: var(--cml-deep);
    color: var(--cml-paper);
    padding: 72px 0 56px;
}

.cml-page-hero h1 {
    color: var(--cml-paper);
    font-size: 2.8rem;
    margin: 8px 0 12px;
}

.cml-page-hero p {
    max-width: 40rem;
    color: rgba(254, 254, 254, 0.78);
}

/* Team */
.cml-avatar {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: var(--cml-teal);
    color: var(--cml-paper);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.7rem;
    margin-bottom: 16px;
}

.cml-team-card,
.cml-office-card,
.cml-partner-card,
.cml-post-card,
.cml-job-card {
    background: var(--cml-paper);
    border: 1px solid var(--cml-line);
    border-radius: 12px;
    padding: 24px;
    height: 100%;
    margin-bottom: 24px;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease, border-color 0.3s ease;
}

.cml-team-card:hover,
.cml-office-card:hover,
.cml-partner-card:hover,
.cml-post-card:hover,
.cml-job-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 36px rgba(47, 63, 63, 0.12);
    border-color: rgba(1, 146, 124, 0.28);
}

.cml-partner-mark {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    background: var(--cml-teal-soft);
    color: var(--cml-teal);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    letter-spacing: 0.04em;
    margin-bottom: 16px;
}

.cml-chip {
    display: inline-block;
    background: var(--cml-teal-soft);
    color: var(--cml-teal-dark);
    border-radius: 99px;
    padding: 4px 12px;
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 10px;
}

/* Forms */
.cml-form .input-field input,
.cml-form .input-field textarea,
.cml-form .input-field select {
    color: var(--cml-ink);
}

.cml-form .input-field input:focus,
.cml-form .input-field textarea:focus {
    border-bottom: 1px solid var(--cml-teal);
    box-shadow: 0 1px 0 0 var(--cml-teal);
}

.cml-form .input-field input:focus + label,
.cml-form .input-field textarea:focus + label {
    color: var(--cml-teal);
}

.cml-form .dropdown-content li > a,
.cml-form .dropdown-content li > span {
    color: var(--cml-ink);
}

.card-panel.cml-alert {
    background: var(--cml-teal-soft);
    color: var(--cml-teal-dark);
    border-left: 4px solid var(--cml-teal);
}

/* Footer */
footer.cml-footer.page-footer {
    background: var(--cml-deep);
    margin-top: 0;
    padding-top: 48px;
}

footer.cml-footer h5 {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.2rem;
}

footer.cml-footer a {
    color: rgba(254, 254, 254, 0.78);
}

footer.cml-footer a:hover {
    color: #9fe3d8;
}

footer.cml-footer .footer-copyright {
    background: rgba(0, 0, 0, 0.18);
}

.cml-footer-brand {
    background: var(--cml-paper);
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 16px;
    max-width: 380px;
}

.cml-footer-brand img {
    width: 100%;
    height: auto;
    display: block;
}

/* Prose */
.cml-prose p {
    margin-bottom: 16px;
}

.cml-prose p:last-child {
    margin-bottom: 0;
}

.cml-empty {
    padding: 32px;
    text-align: center;
    color: rgba(52, 70, 70, 0.7);
}

/* Pagination */
.pagination li.active {
    background: var(--cml-teal);
}

.pagination li a {
    color: var(--cml-ink);
}

@media only screen and (max-width: 992px) {
    .navbar-fixed,
    nav.cml-nav,
    nav.cml-nav .nav-wrapper {
        height: 72px;
        line-height: 72px;
    }

    nav.cml-nav .brand-logo {
        left: 56px;
        transform: none;
        height: 72px;
    }

    nav.cml-nav ul a {
        height: 72px;
        line-height: 72px;
    }

    nav.cml-nav .brand-logo img.cml-logo-stack {
        height: 58px;
        max-width: 180px;
    }

    .cml-hero h1,
    .cml-page-hero h1 {
        font-size: 2.2rem;
    }

    .cml-section {
        padding: 64px 0;
    }
}

/* Progress, diamond rule, ledger paper, motion */
.cml-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    z-index: 1000;
    background: transparent;
    pointer-events: none;
}

.cml-progress span {
    display: block;
    height: 100%;
    width: 100%;
    background: var(--cml-teal);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.12s linear;
}

.cml-diamond-rule {
    display: block;
    width: 8px;
    height: 8px;
    margin: 12px auto 18px;
    background: var(--cml-teal);
    transform: rotate(45deg);
    box-shadow: -28px 0 0 -3px var(--cml-teal), 28px 0 0 -3px var(--cml-teal);
}

.cml-diamond-rule.is-left {
    margin-left: 4px;
    margin-right: auto;
}

.cml-diamond-rule.is-light {
    background: #b7ebe3;
    box-shadow: -28px 0 0 -3px #b7ebe3, 28px 0 0 -3px #b7ebe3;
}

.cml-ledger {
    background-image:
        repeating-linear-gradient(
            to bottom,
            transparent,
            transparent 27px,
            rgba(1, 146, 124, 0.045) 28px
        );
    background-color: var(--cml-mist);
}

.cml-hero-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 18% 40%, rgba(1, 146, 124, 0.28), transparent 52%);
    pointer-events: none;
}

.cml-hero-arc {
    position: absolute;
    top: 8%;
    right: -4%;
    width: min(52vw, 640px);
    opacity: 0.35;
    pointer-events: none;
    animation: cml-arc 8s ease-in-out infinite alternate;
}

.cml-hero-in {
    opacity: 0;
    animation: cml-fade-up 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.cml-hero-in.d2 { animation-delay: 0.12s; }
.cml-hero-in.d3 { animation-delay: 0.24s; }
.cml-hero-in.d4 { animation-delay: 0.36s; }
.cml-hero-in.d5 { animation-delay: 0.48s; }

.cml-logo-stage {
    padding: 28px 20px;
    border: 1px solid var(--cml-line);
    border-radius: 18px;
    background:
        radial-gradient(circle at 50% 0%, rgba(1, 146, 124, 0.08), transparent 55%),
        var(--cml-paper);
    box-shadow: 0 24px 48px rgba(47, 63, 63, 0.1);
    animation: cml-float 6s ease-in-out infinite;
}

.cml-logo-stage .cml-brand-lockup {
    margin-bottom: 0;
    background: transparent;
}

.cml-page-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 80% 0%, rgba(1, 146, 124, 0.28), transparent 50%),
        var(--cml-deep);
}

.cml-page-hero h1 {
    animation: cml-fade-up 0.8s ease both;
}

.cml-page-hero p {
    animation: cml-fade-up 0.9s 0.1s ease both;
}

.cml-cta {
    position: relative;
    overflow: hidden;
}

.cml-cta-sheen {
    position: absolute;
    inset: -40%;
    background: linear-gradient(120deg, transparent 30%, rgba(254, 254, 254, 0.12) 50%, transparent 70%);
    animation: cml-sheen 7s ease-in-out infinite;
    pointer-events: none;
}

.cml-cta .container {
    position: relative;
    z-index: 1;
}

.cml-reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1), transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.cml-reveal.d2 {
    transition-delay: 0.12s;
}

.cml-reveal.is-visible {
    opacity: 1;
    transform: none;
}

.cml-stat .value {
    transition: color 0.3s ease;
}

.cml-stat:hover .value {
    color: var(--cml-teal-dark);
}

footer.cml-footer a {
    transition: color 0.2s ease, padding-left 0.2s ease;
}

footer.cml-footer li a:hover {
    padding-left: 4px;
}

@keyframes cml-fade-up {
    from {
        opacity: 0;
        transform: translateY(22px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes cml-hero-pan {
    from { background-position: 50% 40%; }
    to { background-position: 54% 48%; }
}

@keyframes cml-arc {
    from { transform: translate3d(0, 0, 0); opacity: 0.28; }
    to { transform: translate3d(-18px, 10px, 0); opacity: 0.45; }
}

@keyframes cml-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes cml-sheen {
    0% { transform: translateX(-30%) rotate(8deg); }
    100% { transform: translateX(30%) rotate(8deg); }
}

@media (prefers-reduced-motion: reduce) {
    .cml-hero,
    .cml-hero-arc,
    .cml-hero-in,
    .cml-logo-stage,
    .cml-cta-sheen,
    .cml-page-hero h1,
    .cml-page-hero p {
        animation: none !important;
    }

    .cml-hero-in,
    .cml-reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}
