
/* ARCHIDOVERSE_DUAL_THEME_V1 */

/* Shared theme transition */
html {
    color-scheme: dark;
}

html[data-theme="light"] {
    color-scheme: light;
}

body,
.header,
footer,
.project-grid > a,
.project-facts article,
.services article,
.blog-grid article,
.team-grid > a,
.btn {
    transition: background-color .25s ease,
                border-color .25s ease,
                color .25s ease;
}

/* Theme logos */
.theme-logo-light {
    display: none !important;
}

html[data-theme="light"] .theme-logo-dark {
    display: none !important;
}

html[data-theme="light"] .theme-logo-light {
    display: block !important;
}

/* Header switch */
.theme-toggle {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border: 1px solid #ffffff30;
    border-radius: 50%;
    background: transparent;
    color: #d7f2ee;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.theme-toggle:hover {
    border-color: #40a99d;
    color: #40a99d;
}

.theme-toggle:focus-visible {
    outline: 2px solid #40a99d;
    outline-offset: 3px;
}

/* ============================= */
/* LIGHT THEME                   */
/* ============================= */

html[data-theme="light"] body {
    background: #f5f5f2;
    color: #1b2728;
}

/* Header */
html[data-theme="light"] .header {
    background: rgba(255,255,255,.95);
    color: #172b2c;
    border-bottom: 1px solid #dce5df;
}

html[data-theme="light"] .header nav a {
    color: #243839;
}

html[data-theme="light"] .header nav a:hover {
    color: #168779;
}

html[data-theme="light"] .header select {
    color: #203b3b;
}

html[data-theme="light"] .theme-toggle {
    color: #1d5f56;
    border-color: #c8d8d2;
}

/* Hero */
html[data-theme="light"] .hero {
    color: #142627;
    background:
        linear-gradient(
            100deg,
            rgba(255,255,255,.96),
            rgba(225,239,234,.87)
        ),
        url('../img/hero-abstract.svg') center/cover;
}

html[data-theme="light"] .hero h1 {
    color: #152d2f;
}

html[data-theme="light"] .hero .eyebrow {
    color: #876b37;
}

html[data-theme="light"] .hero .muted {
    color: #4d6260;
}

html[data-theme="light"] .hero aside {
    background: #ffffffdf;
    border-color: #cbded7;
    color: #183434;
}

html[data-theme="light"] .hero aside div {
    border-right-color: #d6e4df;
}

html[data-theme="light"] .hero aside span {
    color: #536966;
}

html[data-theme="light"] .hero .outline {
    color: #1d5f56;
    border-color: #568a81;
}

/* Inner page headers */
html[data-theme="light"] .inner,
html[data-theme="light"] .page-hero {
    background: linear-gradient(110deg,#edf4f0,#dcece5);
    color: #183434;
}

html[data-theme="light"] .inner p,
html[data-theme="light"] .page-hero > p:last-child {
    color: #48645f;
}

/* Cards and general sections */
html[data-theme="light"] .services article,
html[data-theme="light"] .project-facts article,
html[data-theme="light"] .team-grid > a,
html[data-theme="light"] .blog-grid article,
html[data-theme="light"] .palette article,
html[data-theme="light"] .symbols div {
    background: #fff;
    color: #203333;
    border-color: #d8e3dd;
}

html[data-theme="light"] .project-grid > a {
    background: #ffffff;
    color: #193133;
    border: 1px solid #d8e3dd;
}

html[data-theme="light"] .project-grid span {
    color: #876b37;
}

html[data-theme="light"] .project-grid p,
html[data-theme="light"] .team-grid p,
html[data-theme="light"] .blog-grid p {
    color: #566d68;
}

html[data-theme="light"] .readable,
html[data-theme="light"] .project-copy {
    color: #223332;
}

/* Company presence */
html[data-theme="light"] .presence {
    background: linear-gradient(100deg,#dbece6,#c9e3da);
    color: #193536;
}

html[data-theme="light"] .presence article {
    border-right-color: #afccc1;
}

html[data-theme="light"] .presence p {
    color: #4e6862;
}

/* Call to action */
html[data-theme="light"] .cta {
    background: linear-gradient(100deg,#d9eee7,#b8dbce);
    color: #173637;
}

/* Articles */
html[data-theme="light"] .article {
    background: #f9faf8;
    color: #203333;
}

/* Project details */
html[data-theme="light"] .project-hero {
    color: #fff;
}

html[data-theme="light"] .project-gallery figure {
    background: #fff;
}

html[data-theme="light"] .project-gallery figcaption {
    color: #50665f;
}

/* Contact */
html[data-theme="light"] .contact {
    background: linear-gradient(110deg,#e7f3ed,#c9e5d9);
    color: #193638;
}

html[data-theme="light"] .contact > div > p {
    color: #4f6a63;
}

html[data-theme="light"] .contact form {
    background: #ffffffa8;
    border-color: #cedfd6;
}

html[data-theme="light"] .contact input,
html[data-theme="light"] .contact textarea {
    color: #1c3333;
    border-color: #7d9c90;
}

/* Footer */
html[data-theme="light"] footer {
    background: #e3eee8;
    color: #1e3736;
}

html[data-theme="light"] footer p,
html[data-theme="light"] footer a {
    color: #4d6660;
}

html[data-theme="light"] footer small {
    border-top-color: #c6d9d0;
}

/* Mobile navigation */
html[data-theme="light"] .mobile.open {
    background: #f2f7f3;
    color: #1e3434;
}

html[data-theme="light"] .mobile a {
    border-bottom-color: #ceded6;
}

/* Lightbox deliberately stays dark for image presentation */
html[data-theme="light"] .archi-lightbox {
    background: rgba(5,15,18,.97);
    color: #fff;
}

@media (max-width: 620px) {
    .theme-toggle {
        width: 34px;
        height: 34px;
        font-size: 18px;
    }

    .header > div {
        gap: 7px;
    }
}

@media (prefers-reduced-motion: reduce) {
    body,
    .header,
    footer {
        transition: none;
    }
}


/* ARCHIDOVERSE_HERO_DUAL_LOGO_V1 */

.hero-brand-logo {
    width: min(420px, 80%);
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-brand-logo img {
    width: 100%;
    height: auto;
    max-height: 430px;
    object-fit: contain;
}

.hero-logo-light {
    display: none !important;
}

html[data-theme="light"] .hero-logo-dark {
    display: none !important;
}

html[data-theme="light"] .hero-logo-light {
    display: block !important;
}

@media (max-width: 950px) {
    .hero-brand-logo {
        width: min(320px, 80%);
    }
}

@media (max-width: 620px) {
    .hero-brand-logo {
        width: min(250px, 75%);
    }
}


/* ARCHIDOVERSE FIXED HEADER LOGO V1 */
.header .theme-logo-dark {
    display: block !important;
}
.header .theme-logo-light {
    display: none !important;
}
html[data-theme="light"] .header .theme-logo-dark {
    display: block !important;
}
html[data-theme="light"] .header .theme-logo-light {
    display: none !important;
}


/* ARCHIDOVERSE_FIXED_FOOTER_LOGO_V1 */

footer .theme-logo-dark {
    display: block !important;
}

footer .theme-logo-light {
    display: none !important;
}

html[data-theme="light"] footer .theme-logo-dark {
    display: block !important;
}

html[data-theme="light"] footer .theme-logo-light {
    display: none !important;
}

footer .theme-logo-dark {
    width: 200px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}


/* ARCHIDOVERSE LIGHT HERO WHITE BLEND V1 */

html[data-theme="light"] .hero {
    background: linear-gradient(
        90deg,
        #F4F6F3 0%,
        #F8FAF8 35%,
        #FFFFFF 64%,
        #FFFFFF 100%
    ) !important;
}

html[data-theme="light"] .hero-brand-logo {
    background: #FFFFFF;
}

html[data-theme="light"] .hero-logo-light {
    background: #FFFFFF;
    object-fit: contain;
}

@media (max-width: 950px) {
    html[data-theme="light"] .hero {
        background: #FFFFFF !important;
    }
}

/* ARCHIDOVERSE_LOGO_MANAGER_V3 */
/* Previously-added !important rules kept header/footer on one logo.
   These final rules activate independent dark/light assets. */
html[data-theme="light"] .header .theme-logo-dark,
html[data-theme="light"] footer .theme-logo-dark { display: none !important; }
html[data-theme="light"] .header .theme-logo-light,
html[data-theme="light"] footer .theme-logo-light { display: block !important; }
html[data-theme="dark"] .header .theme-logo-dark,
html[data-theme="dark"] footer .theme-logo-dark { display: block !important; }
html[data-theme="dark"] .header .theme-logo-light,
html[data-theme="dark"] footer .theme-logo-light { display: none !important; }
/* Keep horizontal branding neatly inside header/footer in both modes. */
.header .theme-logo-light,.header .theme-logo-dark { width:190px; height:60px; object-fit:contain; }
footer .theme-logo-light,footer .theme-logo-dark { width:200px; max-width:100%; height:auto; object-fit:contain; }
/* White Light Hero area avoids the white rectangle around the supplied logo. */
html[data-theme="light"] .hero { background:linear-gradient(90deg,#f7f8f6 0%,#ffffff 60%,#ffffff 100%) !important; }
html[data-theme="light"] .hero-brand-logo,html[data-theme="light"] .hero-logo-light { background:#fff; }
/* The Appearance admin page loads its own CSS; layout is additionally styled inline below. */


/* ARCHIDOVERSE_LIGHT_FOOTER_LOGO_BLEND_V1 */

/* Blend white logo background into the light footer */
html[data-theme="light"] footer img.theme-logo-light,
html[data-theme="light"] footer img[src*="/media/48"],
html[data-theme="light"] footer img[src*="logo-horizontal-dark"] {
    mix-blend-mode: multiply !important;
    background: transparent !important;
}


/* ARCHIDOVERSE_LIGHT_LOGOS_SIZE_BLEND_V2 */

/* Header: enlarge and blend light-theme logo */
html[data-theme="light"] header img.theme-logo-dark,
html[data-theme="light"] header img.theme-logo-light {
    width: 220px !important;
    max-width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    mix-blend-mode: multiply !important;
    background: transparent !important;
}

/* Footer: enlarge and blend light-theme logo */
html[data-theme="light"] footer img.theme-logo-dark,
html[data-theme="light"] footer img.theme-logo-light {
    width: 245px !important;
    max-width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    mix-blend-mode: multiply !important;
    background: transparent !important;
}

/* Smaller screens */
@media (max-width: 620px) {
    html[data-theme="light"] header img.theme-logo-dark,
    html[data-theme="light"] header img.theme-logo-light {
        width: 175px !important;
    }

    html[data-theme="light"] footer img.theme-logo-dark,
    html[data-theme="light"] footer img.theme-logo-light {
        width: 210px !important;
    }
}


/* ARCHIDOVERSE_FOOTER_EQUAL_SIZE_V3 */

/* Match the existing Dark Theme footer logo dimensions */
footer img.theme-logo-dark,
footer img.theme-logo-light {
    width: 200px !important;
    max-width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
}

/* Keep the white-background blending on Light Theme only */
html[data-theme="light"] footer img.theme-logo-light {
    mix-blend-mode: multiply !important;
    background: transparent !important;
}

/* Keep the same dimensions on mobile */
@media (max-width: 620px) {
    footer img.theme-logo-dark,
    footer img.theme-logo-light {
        width: 200px !important;
        max-width: 100% !important;
    }
}


/* ARCHIDOVERSE_HEADER_EQUAL_SIZE_V4 */

/* Same dimensions for both header logos */
html[data-theme="dark"] .header img.theme-logo-dark,
html[data-theme="light"] .header img.theme-logo-light {
    width: 190px !important;
    height: 60px !important;
    max-width: 100% !important;
    object-fit: contain !important;
    object-position: left center !important;
    padding: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
}

/* Keep light-logo white blending */
html[data-theme="light"] .header img.theme-logo-light {
    mix-blend-mode: multiply !important;
    background: transparent !important;
}

@media (max-width: 620px) {
    html[data-theme="dark"] .header img.theme-logo-dark,
    html[data-theme="light"] .header img.theme-logo-light {
        width: 170px !important;
        height: 54px !important;
    }
}

/* END_ARCHIDOVERSE_HEADER_EQUAL_SIZE_V4 */


/* ARCHIDOVERSE_COPY_PROTECTION_V1 */

/* Disable selection only on public pages */
body:not(.admin) {
    -webkit-user-select: none;
    user-select: none;
}

body:not(.admin) input,
body:not(.admin) textarea,
body:not(.admin) select,
body:not(.admin) [contenteditable],
body:not(.admin) [role="textbox"] {
    -webkit-user-select: text;
    user-select: text;
}


/* ARCHIDOVERSE_FOOTER_UNIFIED_V5 */

/* Identical logo dimensions in both themes */
footer img.theme-logo-dark,
footer img.theme-logo-light {
    width: 200px !important;
    max-width: 100% !important;
    height: 65px !important;
    object-fit: contain !important;
    object-position: left center !important;
}

/* Keep light logo blending */
html[data-theme="light"] footer img.theme-logo-light {
    mix-blend-mode: multiply !important;
    background: transparent !important;
}


/* ARCHIDOVERSE_LOGO_ALIGNMENT_V6 */

html[data-theme="dark"] body footer img.theme-logo-dark,
html[data-theme="light"] body footer img.theme-logo-light {
    display: block !important;
    width: 200px !important;
    min-width: 0 !important;
    max-width: 200px !important;
    height: 65px !important;
    max-height: 65px !important;
    object-fit: contain !important;
    object-position: left center !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
}

html[data-theme="light"] body footer img.theme-logo-light {
    mix-blend-mode: multiply !important;
    background: transparent !important;
}


/* ARCHIDOVERSE_HERO_INTRO_V1 */

.archi-hero-intro-layer {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 99999;
    pointer-events: none;
    overflow: hidden;
    background: #071719;
}

.archi-hero-intro-layer[data-theme="light"] {
    background: #ffffff;
}

.archi-hero-intro-layer[data-theme="dark"] {
    background: #071719;
}

.archi-hero-intro-image {
    position: fixed;
    display: block !important;
    object-fit: contain !important;
    object-position: center !important;
    max-width: none !important;
    max-height: none !important;
    transform-origin: center center;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    will-change: transform, opacity;
}

@media (prefers-reduced-motion: reduce) {
    .archi-hero-intro-layer {
        display: none !important;
    }
}


/* ARCHIDOVERSE_HERO_INTRO_V2 */

/* No dark or white fullscreen background */
.archi-hero-intro-layer,
.archi-hero-intro-layer[data-theme="light"],
.archi-hero-intro-layer[data-theme="dark"] {
    background: transparent !important;
    pointer-events: none !important;
}

.archi-hero-intro-image {
    background: transparent !important;
    object-fit: contain !important;
    opacity: 1 !important;
}


/* ARCHIDOVERSE_CINEMATIC_WELCOME_V4 */
.archi-cinematic-copy {
    position:fixed;
    left:50%;top:65%;transform:translateX(-50%);
    width:min(92vw,800px);
    text-align:center;
    z-index:100002;
    pointer-events:none;
    color:#f5fbfa;
    text-shadow:0 2px 14px rgba(0,0,0,.35);
    font-family:inherit;
}
html[data-theme="light"] .archi-cinematic-copy {color:#153a36;text-shadow:none;}
.archi-cinematic-copy h2 {font-size:clamp(18px,2.3vw,32px);line-height:1.25;letter-spacing:.09em;margin:0 0 12px;}
.archi-intro-tagline {font-size:clamp(14px,1.4vw,20px);margin:0 0 12px;}
.archi-intro-support {font-size:clamp(12px,1vw,15px);opacity:.86;margin:0;}
.archi-intro-skip {position:fixed;right:28px;bottom:24px;z-index:100003;background:rgba(5,20,21,.74);color:white;border:1px solid rgba(255,255,255,.28);border-radius:20px;padding:9px 16px;cursor:pointer;font:inherit;font-size:13px;}
html[data-theme="light"] .archi-intro-skip {background:rgba(255,255,255,.86);color:#17443b;border-color:#aac8bf;}
@media(max-width:640px) {
  .archi-cinematic-copy {top:62%;width:90vw;}
  .archi-cinematic-copy h2 {letter-spacing:.035em;}
  .archi-intro-skip {right:14px;bottom:14px;}
}
@media(prefers-reduced-motion:reduce) {.archi-cinematic-copy,.archi-intro-skip{display:none!important;}}

/* ARCHIDOVERSE_CINEMATIC_WELCOME_V41 */
.archi-welcome-stage-v41 {
  position:fixed!important;inset:0!important;z-index:100010!important;
  width:100vw!important;height:100dvh!important;display:block!important;
  overflow:hidden!important;pointer-events:auto!important;
  background:#061719!important;color:#eef7f4!important;
}
html[data-theme="light"] .archi-welcome-stage-v41,
html:not([data-theme="dark"]) .archi-welcome-stage-v41 {
  background:#f8faf8!important;color:#12332f!important;
}
.archi-welcome-copy-v41 {
  position:absolute!important;top:70%!important;left:50%!important;
  transform:translateX(-50%)!important;width:min(90vw,860px)!important;
  text-align:center!important;pointer-events:none!important;
  margin:0!important;padding:0 14px!important;box-sizing:border-box!important;
  color:inherit!important;z-index:1!important;
}
.archi-welcome-copy-v41 h2 {font-size:clamp(19px,2.25vw,34px)!important;line-height:1.25!important;letter-spacing:.045em!important;margin:0 0 10px!important;color:inherit!important;}
.archi-welcome-tagline-v41 {font-size:clamp(15px,1.35vw,21px)!important;line-height:1.4!important;margin:0 0 9px!important;color:inherit!important;}
.archi-welcome-sub-v41 {font-size:clamp(12px,1vw,15px)!important;margin:0!important;opacity:.78!important;color:inherit!important;}
.archi-welcome-skip-v41 {position:absolute!important;right:24px!important;bottom:22px!important;z-index:2!important;border:1px solid currentColor!important;border-radius:24px!important;background:transparent!important;color:inherit!important;padding:9px 17px!important;font:inherit!important;font-size:13px!important;cursor:pointer!important;}
@media(max-width:640px) {
  .archi-welcome-copy-v41 {top:69%!important;width:96vw!important;}
  .archi-welcome-copy-v41 h2 {letter-spacing:.015em!important;}
  .archi-welcome-skip-v41 {right:14px!important;bottom:14px!important;}
}
@media(prefers-reduced-motion:reduce) {.archi-welcome-stage-v41{display:none!important;}}
