/* Shared NX and legacy accessibility / reflow safeguards. */
:focus-visible{outline:3px solid #885132;outline-offset:3px}
.nx-rail :focus-visible,.nx-footer :focus-visible{outline-color:#f4cb97}
#main-content:focus{outline:none}
.nx-main,.nx-main section,.nx-main article,.nx-main header,.nx-main figure,.nx-footer-grid>*{min-width:0}
.nx-main,.nx-footer-common{overflow-wrap:break-word}
.nx-footer-common a,.nx-email a{overflow-wrap:anywhere}
.nx-action,.nx-project>a,.nx-work-link,.nx-languages a,.nx-more a{min-height:44px}
.nx-languages a{display:inline-flex;align-items:center;justify-content:center;min-width:44px}
.nx-action{max-width:100%;white-space:normal}
.nx-file-type{font-size:.8em;white-space:nowrap}
.nx-results{font-size:.9rem;margin:.5rem 0 1rem}
.nx-contact-layout input:not([type=checkbox]),.nx-contact-layout select,.nx-contact-layout textarea{border-color:#718087}
.nx-contact-layout input[type=checkbox]{width:20px;height:20px;vertical-align:middle;accent-color:#172d36}
.nx-contact-layout label{line-height:1.5}

.nx-profile h1{overflow-wrap:anywhere}
.nx-preview-grid a{min-width:0}
.nx-preview-grid img,.nx-book-cover img{aspect-ratio:auto}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important}}
@media(forced-colors:active){.nx-action,.nx-nav a[aria-current],.nx-filters button[aria-pressed=true]{border:2px solid ButtonText}.nx-plus::before,.nx-plus::after{background:ButtonText}}
@media(max-width:720px){.nx-nav a{min-height:44px;font-size:12px}.nx-more summary{min-height:44px}.nx-rail-bottom{gap:8px}.nx-languages{gap:4px}.nx-profile h1{font-size:clamp(42px,12vw,80px)}.nx-contact-layout input:not([type=checkbox]),.nx-contact-layout select,.nx-contact-layout textarea{font-size:16px}.nx-work-tools{flex-direction:column;align-items:stretch}.nx-search{min-width:0}.nx-filters button{flex:1 1 auto}.nx-work-visual .nx-project-logo[data-brand=longoka]{max-width:80%}.nx-spectrum span{min-height:44px}}
@media(max-width:400px){.nx-nav{grid-template-columns:repeat(2,minmax(0,1fr))}.nx-footer-grid{grid-template-columns:1fr}.nx-preview-grid{gap:8px}.nx-main .nx-section-header{grid-template-columns:1fr}.nx-contact-layout form{padding:16px}.nx-publication-list article{padding:18px}}

/* Shared decorative content icons, no remote fonts or runtime dependency. */
.nx-content-mark,.nx-page-mark{display:inline-flex;align-items:center;justify-content:center;color:#885132;flex:none;vertical-align:middle}
.nx-content-mark{width:44px;height:44px;margin-bottom:12px}.nx-content-mark .nx-icon{width:32px;height:32px}
.nx-page-mark{float:right;width:64px;height:64px;margin:0 0 12px 20px}.nx-page-mark .nx-icon{width:56px;height:56px}
.tech-pipeline li .nx-content-mark{display:flex;margin:0 auto 8px}.tech-domain .nx-content-mark{margin-bottom:8px}.now-list li .nx-content-mark{width:32px;height:32px;margin:0 10px 0 0}.now-list li .nx-content-mark .nx-icon{width:24px;height:24px}
.nx-more a .nx-icon{width:16px;height:16px;margin-right:7px}.creative-pole .nx-content-mark{display:flex}.nx-expertise .nx-content-mark{display:flex}
@media(max-width:520px){.nx-page-mark{width:42px;height:42px;margin-left:8px}.nx-page-mark .nx-icon{width:36px;height:36px}.nx-content-mark .nx-icon{width:28px;height:28px}}

/* ARTFUL PORTFOLIO AND TECHNOLOGY FINAL */

.nx-project-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.nx-project-grid > .nx-project:nth-child(n) {
    grid-column: auto;
    min-width: 0;
    min-height: 340px;
    background: #e4d8c3;
    color: #172d36;
    border: 0;
    padding: clamp(20px, 3vw, 38px);
}

.nx-project-grid > .nx-project:nth-child(1) {
    background: #1f4149;
    color: #fff;
}

.nx-project-grid > .nx-project:nth-child(2) {
    background: #d9cab0;
}

.nx-project-grid > .nx-project:nth-child(3) {
    background: #dfd1af;
}

.nx-project-grid > .nx-project:nth-child(4) {
    background: #cadbd7;
}

.nx-project-grid > .nx-project:nth-child(5) {
    background: #ded5e8;
}

.nx-project-grid > .nx-project:nth-child(6) {
    background: #d4dfca;
}

.nx-project-grid > .nx-project:nth-child(7) {
    background: #e2c7af;
}

.nx-project-grid > .nx-project .nx-project-identity {
    background: transparent;
    border: 0;
    min-height: 164px;
    display: grid;
    place-items: center;
}

.nx-project-grid > .nx-project .nx-project-logo {
    background: transparent;
    object-fit: contain;
    object-position: center;
}

.nx-project-grid > .nx-project:first-child
.nx-project-benefits li::before {
    background: #e5bf8b;
}

/* TECHNOLOGIES: VALUE CHAIN */

.tech-pipeline {
    counter-reset: tech-step;
    list-style: none;
    padding: 0;
    margin: 32px 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.tech-pipeline > li {
    counter-increment: tech-step;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 14px;
    min-width: 0;
    min-height: 200px;
    padding: 24px;
    background: #e4d8c3;
    color: #172d36;
    border: 0;
    border-bottom: 4px solid #885132;
    font-weight: 600;
    font-size: 15px;
    line-height: 1.5;
    text-align: left;
}

.tech-pipeline > li::before {
    content: counter(tech-step, decimal-leading-zero);
    position: absolute;
    top: 16px;
    right: 18px;
    font: 400 28px Georgia, serif;
    opacity: .8;
}

.tech-pipeline > li::after {
    content: none;
}

.tech-pipeline > li:nth-child(4n+2) {
    background: #cadbd7;
}

.tech-pipeline > li:nth-child(4n+3) {
    background: #e2c7af;
}

.tech-pipeline > li:nth-child(4n) {
    background: #1f4149;
    color: #fff;
    border-color: #b78b52;
}

.tech-pipeline > li .nx-content-mark {
    color: inherit;
    margin: 0 0 10px;
    width: 48px;
    height: 48px;
}

.tech-pipeline > li .nx-icon {
    width: 40px;
    height: 40px;
}

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

.tech-domain {
    min-width: 0;
    background: #f3eadc;
    border: 1px solid #cbbba4;
    border-top: 4px solid #885132;
    padding: 24px;
}

.tech-domain:nth-child(3n+2) {
    background: #e2eae4;
    border-top-color: #1f4149;
}

.tech-domain h3 {
    font-family: Georgia, serif;
    font-size: 23px;
    line-height: 1.2;
}

.tech-domain-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
    list-style: none;
}

.tech-domain-list > li {
    background: transparent;
    border: 1px solid #a69e8c;
    padding: 6px 10px;
    font-size: 13px;
    overflow-wrap: anywhere;
}

@media (max-width: 1200px) {
    .tech-pipeline,
    .tech-domains {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .nx-project-grid,
    .tech-pipeline,
    .tech-domains {
        grid-template-columns: 1fr;
    }

    .tech-pipeline > li {
        min-height: 160px;
    }

    .nx-project-grid > .nx-project:nth-child(n) {
        min-height: 0;
    }
}

/* Technologies: explicit stage structure, scoped to this page. */
.site-shell .nx-tech-flow{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;list-style:none;padding:0;margin:28px 0 0;background:transparent}
.site-shell .nx-tech-flow>.nx-tech-stage{display:flex;flex-direction:column;justify-content:flex-start;align-items:stretch;gap:14px;padding:clamp(16px,2vw,26px);min-height:220px;border-radius:4px;text-align:left;box-sizing:border-box;font-weight:400;min-width:0}
.site-shell .nx-tech-flow>.nx-tech-stage::before,.site-shell .nx-tech-flow>.nx-tech-stage::after{content:none;display:none}
.nx-tech-stage-head{display:flex;justify-content:space-between;align-items:center;gap:12px;border-bottom:1px solid currentColor;padding-bottom:12px}
.site-shell .nx-tech-stage-head .nx-content-mark{margin:0;color:inherit;width:40px;height:40px}
.nx-tech-stage-number{font:400 28px/1 Georgia,serif;letter-spacing:-.03em}
.site-shell .nx-tech-stage h3{font:400 clamp(20px,2vw,28px)/1.15 Georgia,serif;color:inherit;margin:0;overflow-wrap:anywhere}
.site-shell .nx-tech-stage p{font-size:14px;line-height:1.55;color:inherit;margin:0;overflow-wrap:anywhere}
@media(max-width:1250px){.site-shell .nx-tech-flow{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){.site-shell .nx-tech-flow{grid-template-columns:1fr}.site-shell .nx-tech-flow>.nx-tech-stage{min-height:0}}

/* Legacy page wrapper is not nx-main; override the old 36rem pipeline cap. */
.site-shell .tech-pipeline.nx-tech-flow{width:100%;max-width:none;box-sizing:border-box;grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr));counter-reset:none}
.site-shell .nx-tech-flow>.nx-tech-stage{width:100%;max-width:none;min-height:220px;align-content:start}
@media(max-width:720px){.site-shell .tech-pipeline.nx-tech-flow{grid-template-columns:1fr}.site-shell .nx-tech-flow>.nx-tech-stage{min-height:0}}
