:root {
    --ink: #172d2a;
    --muted: #64736f;
    --green: #0c5d50;
    --green-dark: #083d36;
    --mint: #e8f4ed;
    --paper: #fbfcfa;
    --line: #dce5df;
    --lime: #d8f78a;
}

.consulting-page {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: Inter, "IBM Plex Sans", "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

.consulting-page *,
.consulting-page *::before,
.consulting-page *::after {
    box-sizing: border-box;
}

.consulting-page a {
    color: inherit;
}

.site-container {
    width: min(1120px, calc(100% - 48px));
    margin: 0 auto;
}

.skip-link {
    position: absolute;
    z-index: 5;
    top: 8px;
    left: 8px;
    padding: 10px 14px;
    transform: translateY(-150%);
    border-radius: 6px;
    color: #fff !important;
    background: var(--green-dark);
}

.skip-link:focus {
    transform: translateY(0);
}

.site-nav {
    position: relative;
    z-index: 2;
    border-bottom: 1px solid rgba(23, 45, 42, .08);
    background: rgba(251, 252, 250, .96);
}

.site-nav-inner,
.site-nav nav {
    display: flex;
    align-items: center;
}

.site-nav-inner {
    min-height: 82px;
    justify-content: space-between;
    gap: 24px;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--green) !important;
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -.06em;
    text-decoration: none;
}

.brand-mark span {
    padding-left: 10px;
    border-left: 1px solid #bdcbc3;
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .13em;
}

.site-nav nav {
    gap: 34px;
}

.site-nav nav a,
.footer-inner > a:not(.brand-mark) {
    color: #41534e;
    font-size: 13px;
    font-weight: 650;
    text-decoration: none;
}

.site-nav nav a:hover,
.footer-inner > a:not(.brand-mark):hover {
    color: var(--green);
}

.site-nav nav .nav-cta {
    padding: 12px 17px;
    border-radius: 6px;
    color: white;
    background: var(--green);
}

.site-nav nav .nav-cta:hover {
    color: white;
    background: var(--green-dark);
}

.hero-section {
    padding: 92px 0 84px;
    background:
        radial-gradient(ellipse at 82% 28%, rgba(216, 247, 138, .25), transparent 34%),
        linear-gradient(180deg, #fbfcfa 0%, #f6f9f5 100%);
}

.hero-layout {
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
    align-items: center;
    gap: 56px;
}

.hero-copy {
    max-width: 520px;
}

.eyebrow {
    margin: 0 0 17px;
    color: var(--green);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .13em;
    line-height: 1.5;
    text-transform: uppercase;
}

.status-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    margin: 0 7px 1px 0;
    border-radius: 50%;
    background: #64a878;
}

.hero-copy h1 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(42px, 5vw, 65px);
    font-weight: 650;
    letter-spacing: -.065em;
    line-height: 1.04;
}

.hero-copy h1 span {
    color: var(--green);
}

.hero-intro {
    max-width: 485px;
    margin: 23px 0 0;
    color: #5b6d67;
    font-size: 17px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 22px;
    margin-top: 30px;
}

.button-primary,
.button-light {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 15px 19px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: background-color .16s ease, transform .16s ease;
}

.button-primary {
    color: white !important;
    background: var(--green);
}

.button-primary:hover {
    transform: translateY(-2px);
    background: var(--green-dark);
}

.text-link {
    color: var(--green) !important;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.text-link:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.hero-note {
    margin: 30px 0 0;
    color: #788780;
    font-size: 11px;
    letter-spacing: .03em;
}

.platform-visual {
    position: relative;
    padding: 25px 24px 20px;
    overflow: hidden;
    border: 1px solid #d5e0d9;
    border-radius: 12px;
    background:
        linear-gradient(rgba(12, 93, 80, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(12, 93, 80, .035) 1px, transparent 1px),
        #fff;
    background-size: 25px 25px;
    box-shadow: 0 24px 60px rgba(27, 55, 45, .09);
}

.visual-topline,
.visual-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    color: #73827a;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .1em;
}

.live-indicator {
    color: #4d8960;
    white-space: nowrap;
}

.flow {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 22px minmax(0, 1.12fr) 22px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    padding: 42px 0;
}

.flow-node {
    min-height: 170px;
    padding: 14px 12px;
    border: 1px solid #e0e8e2;
    border-radius: 8px;
    background: rgba(255, 255, 255, .94);
}

.flow-node-featured {
    border-color: #9dc5a8;
    box-shadow: 0 9px 24px rgba(17, 81, 60, .1);
}

.node-index {
    display: block;
    color: #89978f;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .08em;
    white-space: nowrap;
}

.node-icon {
    position: relative;
    display: block;
    width: 39px;
    height: 39px;
    margin: 17px 0 14px;
    border-radius: 9px;
    background: #eaf3ed;
}

.node-source i {
    position: absolute;
    left: 11px;
    width: 17px;
    height: 5px;
    border: 1.5px solid var(--green);
    border-radius: 50%;
}

.node-source i:nth-child(1) { top: 11px; }
.node-source i:nth-child(2) { top: 17px; }
.node-source i:nth-child(3) { top: 23px; }

.node-layers i {
    position: absolute;
    left: 10px;
    width: 19px;
    height: 10px;
    transform: rotate(30deg) skewX(-26deg);
    border: 1.5px solid var(--green);
    border-radius: 2px;
}

.node-layers i:nth-child(1) { top: 8px; }
.node-layers i:nth-child(2) { top: 14px; }
.node-layers i:nth-child(3) { top: 20px; }

.node-insight i {
    position: absolute;
    bottom: 10px;
    width: 5px;
    border-radius: 2px 2px 0 0;
    background: var(--green);
}

.node-insight i:nth-child(1) { left: 10px; height: 9px; }
.node-insight i:nth-child(2) { left: 18px; height: 17px; }
.node-insight i:nth-child(3) { left: 26px; height: 13px; }

.flow-node strong,
.flow-node small {
    display: block;
}

.flow-node strong {
    font-size: 11px;
    letter-spacing: -.02em;
}

.flow-node small {
    margin-top: 6px;
    color: #77857e;
    font-size: 9px;
    line-height: 1.45;
}

.flow-connector {
    color: #6fa280;
    font-size: 19px;
    text-align: center;
}

.visual-footer {
    padding-top: 16px;
    border-top: 1px solid #e4ebe5;
    font-size: 8px;
    letter-spacing: .05em;
}

.visual-footer span:last-child {
    color: #52675c;
    font-weight: 700;
    letter-spacing: 0;
    text-align: right;
}

.services-section {
    padding: 92px 0 100px;
    background: white;
}

.section-heading {
    max-width: 630px;
    margin-bottom: 39px;
}

.section-heading .eyebrow {
    margin-bottom: 11px;
}

.section-heading h2,
.engagement-panel h2 {
    margin: 0;
    font-size: clamp(30px, 3.6vw, 43px);
    font-weight: 650;
    letter-spacing: -.05em;
    line-height: 1.12;
}

.section-heading h2 {
    color: var(--ink);
}

.engagement-panel h2 {
    color: #fff;
}

.section-heading > p:last-child {
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.6;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.service-card {
    padding: 25px 24px 27px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.service-number {
    color: #80a58a;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
}

.service-card h3 {
    margin: 21px 0 10px;
    color: var(--ink);
    font-size: 18px;
    letter-spacing: -.035em;
    line-height: 1.3;
}

.service-card p,
.service-card li {
    color: #63736d;
    font-size: 13px;
    line-height: 1.65;
}

.service-card p {
    min-height: 64px;
    margin: 0;
}

.service-card ul {
    margin: 17px 0 0;
    padding: 15px 0 0;
    border-top: 1px solid #e9eee9;
    list-style: none;
}

.service-card li {
    position: relative;
    padding-left: 16px;
}

.service-card li + li {
    margin-top: 7px;
}

.service-card li::before {
    position: absolute;
    top: .65em;
    left: 0;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #6fa280;
    content: "";
}

.engagement-section {
    padding: 0 0 86px;
    background: white;
}

.engagement-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 36px;
    padding: 42px 48px;
    border-radius: 10px;
    color: white;
    background: var(--green-dark);
}

.engagement-panel > div {
    max-width: 660px;
}

.engagement-panel .eyebrow {
    color: var(--lime);
}

.engagement-panel h2 {
    font-size: clamp(28px, 3.2vw, 38px);
}

.engagement-panel > div > p:last-child {
    max-width: 620px;
    margin: 13px 0 0;
    color: #d0e0d8;
    font-size: 14px;
    line-height: 1.65;
}

.button-light {
    flex: 0 0 auto;
    color: var(--green-dark) !important;
    background: var(--lime);
}

.button-light:hover {
    transform: translateY(-2px);
    background: #e5ffa5;
}

.site-footer {
    padding: 25px 0;
    border-top: 1px solid var(--line);
    background: var(--paper);
}

.footer-inner {
    display: flex;
    align-items: center;
    gap: 24px;
}

.footer-brand {
    font-size: 15px;
}

.footer-brand span {
    font-size: 8px;
}

.footer-inner p,
.footer-inner small {
    color: #77857e;
    font-size: 11px;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer-inner p {
    flex: 1;
}

.footer-inner > a:not(.brand-mark) {
    font-size: 11px;
}

.footer-inner small {
    white-space: nowrap;
}

.consulting-page :focus-visible {
    outline: 3px solid #87b78e;
    outline-offset: 3px;
}

@media (max-width: 900px) {
    .hero-section {
        padding: 70px 0;
    }

    .hero-layout {
        grid-template-columns: 1fr;
        gap: 44px;
    }

    .hero-copy {
        max-width: 680px;
    }

    .platform-visual {
        width: min(100%, 660px);
    }

    .service-grid {
        grid-template-columns: 1fr 1fr;
    }

    .service-card:last-child {
        grid-column: 1 / -1;
    }

    .service-card p {
        min-height: 0;
    }
}

@media (max-width: 600px) {
    .site-container {
        width: min(100% - 36px, 1120px);
    }

    .site-nav-inner {
        min-height: 72px;
        flex-wrap: wrap;
        gap: 12px;
        padding: 13px 0;
    }

    .site-nav nav {
        width: 100%;
        justify-content: space-between;
        gap: 12px;
    }

    .site-nav nav a {
        font-size: 11px;
    }

    .site-nav nav .nav-cta {
        padding: 10px 11px;
    }

    .hero-section {
        padding: 55px 0 60px;
    }

    .hero-copy h1 {
        font-size: clamp(39px, 12vw, 55px);
    }

    .hero-intro {
        font-size: 15px;
    }

    .hero-actions {
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
    }

    .platform-visual {
        padding: 17px 13px 15px;
    }

    .flow {
        grid-template-columns: minmax(0, 1fr) 12px minmax(0, 1fr) 12px minmax(0, 1fr);
        gap: 4px;
        padding: 30px 0;
    }

    .flow-node {
        min-height: 155px;
        padding: 11px 8px;
    }

    .node-index {
        font-size: 7px;
        letter-spacing: .02em;
    }

    .flow-node strong {
        font-size: 10px;
    }

    .flow-node small {
        font-size: 8px;
    }

    .flow-connector {
        font-size: 14px;
    }

    .visual-topline,
    .visual-footer {
        font-size: 7px;
    }

    .visual-footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    .visual-footer span:last-child {
        text-align: left;
    }

    .services-section {
        padding: 68px 0;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }

    .service-card:last-child {
        grid-column: auto;
    }

    .service-card {
        padding: 22px;
    }

    .engagement-section {
        padding-bottom: 60px;
    }

    .engagement-panel {
        align-items: flex-start;
        flex-direction: column;
        gap: 24px;
        padding: 29px 24px;
    }

    .footer-inner {
        flex-wrap: wrap;
        gap: 13px 18px;
    }

    .footer-inner p {
        flex-basis: calc(100% - 160px);
        margin: 0;
    }

    .footer-links {
        flex-basis: 100%;
        justify-content: space-between;
    }

    .footer-inner small {
        margin-left: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .consulting-page *,
    .consulting-page *::before,
    .consulting-page *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}

.project-intro {
    padding: 66px 0 62px;
    color: #fff;
    background:
        radial-gradient(ellipse at 82% 18%, rgba(216, 247, 138, .13), transparent 35%),
        var(--green-dark);
}

.project-intro .eyebrow {
    margin-bottom: 12px;
    color: var(--lime);
}

.project-intro h1 {
    max-width: 700px;
    margin: 0;
    color: #fff;
    font-size: clamp(38px, 5vw, 56px);
    font-weight: 650;
    letter-spacing: -.06em;
    line-height: 1.08;
}

.project-intro > .site-container > p:last-child {
    max-width: 640px;
    margin: 18px 0 0;
    color: #d2e0d9;
    font-size: 15px;
    line-height: 1.7;
}

.project-page .body-wrap {
    display: block;
    min-height: 0;
    overflow: visible;
    background: transparent;
}

.project-page .boxed-container {
    max-width: none;
    margin: 0;
    box-shadow: none;
}

.project-page .projects {
    padding: 54px 0 76px;
}

.project-page .projects > .container {
    width: min(1120px, calc(100% - 48px));
    margin: 0 auto;
}

.project-page .project-qr {
    display: none;
}

.project-page .metaforge-card,
.project-page .project-card {
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #fff;
    box-shadow: 0 8px 26px rgba(27, 55, 45, .05);
}

.project-page .metaforge-card {
    padding: 34px;
}

.project-page .metaforge-card h2,
.project-page .metaforge-card h3,
.project-page .metaforge-card h4,
.project-page .project-card h3 {
    color: var(--ink);
}

.project-page .metaforge-card h2 {
    margin-top: 0;
    font-size: 30px;
    letter-spacing: -.04em;
}

.project-page .metaforge-card > p {
    color: var(--muted);
    font-size: 15px;
}

.project-page .metaforge-card h3 {
    margin-top: 32px;
    font-size: 19px;
    letter-spacing: -.025em;
}

.project-page .metaforge-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 36px;
    max-width: none;
}

.project-page .metaforge-details h3 {
    grid-column: 1 / -1;
}

.project-page .metaforge-details h4 {
    margin: 20px 0 5px;
    font-size: 14px;
}

.project-page .metaforge-details p,
.project-page .metaforge-details li,
.project-page .project-card p {
    color: #63736d;
    font-size: 13px;
    line-height: 1.7;
}

.project-page .metaforge-details p {
    margin: 0;
}

.project-page .metaforge-details ul {
    padding-left: 20px;
}

.project-page .featured-projects {
    margin: 64px 0;
}

.project-page .section-title {
    color: var(--ink);
    font-size: clamp(27px, 3vw, 36px);
    font-weight: 650;
    letter-spacing: -.05em;
}

.project-page .project-card {
    padding: 25px;
}

.project-page .project-card h3 {
    font-size: 18px;
    letter-spacing: -.03em;
}

.project-page .project-card p {
    margin-bottom: 0;
}

.project-page .merge-function,
.project-page .fabric-section {
    margin-top: 56px;
}

.project-page .merge-function > p,
.project-page .fabric-section > p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}

.project-page .merge-platforms {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    padding: 0;
    list-style: none;
}

.project-page .merge-platforms li {
    padding: 7px 11px;
    border: 1px solid var(--line);
    border-radius: 20px;
    color: var(--green);
    background: #f5faf5;
    font-size: 12px;
    font-weight: 700;
}

.project-page .projects > .container > p:last-child a {
    display: inline-block;
    margin-top: 30px;
    color: var(--green);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.project-page .project-contact {
    padding: 0 0 78px;
}

.project-contact-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 36px 42px;
    border-radius: 10px;
    color: #fff;
    background: var(--green-dark);
}

.project-contact .eyebrow {
    margin-bottom: 10px;
    color: var(--lime);
}

.project-contact h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(25px, 3vw, 34px);
    font-weight: 650;
    letter-spacing: -.045em;
}

.contact-main {
    min-height: calc(100vh - 155px);
    display: grid;
    align-items: center;
    padding: 80px 0;
    background:
        radial-gradient(ellipse at 78% 16%, rgba(216, 247, 138, .19), transparent 35%),
        linear-gradient(180deg, #f8faf6, #fff);
}

.contact-panel {
    max-width: 760px;
    padding-top: 30px;
    padding-bottom: 30px;
}

.contact-panel h1 {
    max-width: 710px;
    margin: 0;
    color: var(--ink);
    font-size: clamp(42px, 6vw, 66px);
    font-weight: 650;
    letter-spacing: -.065em;
    line-height: 1.04;
}

.contact-panel > p:not(.eyebrow) {
    max-width: 570px;
    margin: 22px 0 27px;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.7;
}

.contact-back {
    display: block;
    width: fit-content;
    margin-top: 21px;
    color: var(--green) !important;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.contact-back:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

@media (max-width: 700px) {
    .project-intro {
        padding: 52px 0;
    }

    .project-page .projects {
        padding: 38px 0 54px;
    }

    .project-page .projects > .container {
        width: min(100% - 36px, 1120px);
    }

    .project-page .metaforge-card {
        padding: 24px 20px;
    }

    .project-page .metaforge-details {
        grid-template-columns: 1fr;
    }

    .project-page .metaforge-details h3 {
        grid-column: auto;
    }

    .project-contact-inner {
        align-items: flex-start;
        flex-direction: column;
        padding: 29px 24px;
    }
}

.events-content {
    padding-top: 58px;
    padding-bottom: 36px;
}

.event-group + .event-group {
    margin-top: 58px;
}

.event-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 22px;
}

.event-heading .eyebrow {
    margin-bottom: 7px;
}

.event-heading h2 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(26px, 3vw, 34px);
    font-weight: 650;
    letter-spacing: -.045em;
}

.event-heading > p {
    max-width: 410px;
    margin: 0 0 4px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.65;
}

.event-gallery {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.event-gallery-single {
    grid-template-columns: minmax(0, 1fr);
    max-width: 500px;
}

.event-card {
    min-width: 0;
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.event-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: #edf2ee;
}

.event-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-group:last-of-type .event-card:first-child .event-image img {
    object-position: center 20%;
}

.event-image-rotated {
    aspect-ratio: 3 / 4;
}

.event-image-rotated img,
.event-group:last-of-type .event-card:nth-child(1) .event-image img,
.event-group:last-of-type .event-card:nth-child(2) .event-image img,
.event-group:last-of-type .event-card:nth-child(4) .event-image img {
    object-fit: contain;
}

.event-card figcaption {
    min-height: 52px;
    padding: 14px 15px;
    color: #53665c;
    font-size: 12px;
    line-height: 1.5;
}

.event-card figcaption a {
    color: var(--green);
    font-weight: 700;
    text-underline-offset: 3px;
}

@media (max-width: 900px) {
    .event-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .event-gallery-single {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 600px) {
    .events-content {
        padding-top: 42px;
        padding-bottom: 20px;
    }

    .event-group + .event-group {
        margin-top: 42px;
    }

    .event-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 9px;
    }

    .event-gallery {
        grid-template-columns: minmax(0, 1fr);
    }

    .event-gallery-single {
        grid-template-columns: minmax(0, 1fr);
    }

    .event-image {
        aspect-ratio: 5 / 4;
    }

    .event-image-rotated {
        aspect-ratio: 3 / 4;
    }
}
