/* Arshism 1.0.2: layout refinements from the supplied motion reference. */
:root{--primary:#2455ff;--radius:20px;--header-h:82px;--background:#f3f5fa}
.header-inner{display:grid;grid-template-columns:auto minmax(0,1fr) auto;direction:rtl;gap:28px}
.desktop-navigation{justify-self:center;min-width:0}
.brand{display:inline-flex;flex-direction:row;align-items:center;gap:9px;max-width:210px}
.brand .brand-mark{width:34px;height:38px;object-fit:contain;flex-shrink:0}
.brand .brand-wordmark{display:flex;flex-direction:column;align-items:flex-start;gap:0;align-self:auto}
.brand .brand-wordmark strong{color:#164bdf;font-size:24px;line-height:1.1}
.brand .brand-wordmark>span{font-size:14px;line-height:1.35;align-self:flex-end}
.brand-logo{max-width:170px;width:auto;max-height:58px}
.menu-toggle{display:none}
.menu{gap:25px}
.menu a{font-size:14px}
.home-hero{grid-template-columns:1.05fr 1.15fr;min-height:440px;padding-block:32px 20px;gap:20px}
.home-hero h1{font-size:clamp(36px,3.65vw,49px);line-height:1.55;letter-spacing:-.9px;font-weight:900}
.home-hero .hero-art{width:108%;max-width:calc(100% + 24px);margin-inline-start:-4%}
.hero-description{font-size:18px;line-height:1.9;max-width:100%}
.hero-accent{color:inherit}
.home-hero .button-row{gap:16px;margin-block-start:22px}
.home-hero .button{min-width:185px}
.feature-grid{gap:20px}
.feature-card{padding:21px 20px;gap:15px;min-height:125px}
.feature-card h2{font-size:20px;font-weight:850}
.feature-illustration{display:flex;align-items:center;justify-content:center;width:82px;height:88px;flex-shrink:0}
.pearl-illustration{display:block;width:100%}
.pearl-illustration img{width:100%;height:auto;object-fit:contain}
.feature-illustration .pearl-illustration,.feature-illustration img{width:100%;height:100%;object-fit:contain}
.section{margin-block:58px}
.section-heading{position:relative;padding-block-end:15px;margin-block-end:26px}
.section-heading::after{content:'';position:absolute;inset-block-end:0;inset-inline-start:calc(50% - 18px);width:36px;height:4px;border-radius:5px;background:var(--primary)}
.project-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}
.project-image-link{background:linear-gradient(145deg,#edf3ff,#f6f8fc);border:1px solid #e2e8f4}
.project-image-link .pearl-illustration,.project-image-link .pearl-illustration img{height:100%;object-fit:contain}
.featured-projects>.project-card{display:grid;grid-template-columns:1fr 1.15fr;align-items:center;gap:12px;padding:20px 16px;min-height:235px}
.featured-projects>.project-card>.project-image-link{grid-column:2;grid-row:1;border:0;background:transparent;aspect-ratio:1.18;overflow:visible}
.featured-projects>.project-card>.project-copy{grid-column:1;grid-row:1;padding:0}
.featured-projects .project-copy h3{font-size:22px;line-height:1.55}
.featured-projects .card-bottom{gap:4px}
.featured-projects .quick-view{font-size:12px}
.featured-projects .text-link{font-size:13px}
.process-grid{gap:18px}
.process-card{padding:20px 12px}
.process-card h3{font-size:18px}
.process-card p{font-size:13px}
.learning-banner{min-height:145px;padding:25px 30px;gap:28px;border:1px solid #dce7fb}
.learning-banner h2{font-size:29px}
.learning-art{width:230px;max-height:150px;flex-shrink:0;align-self:center}
.learning-art .pearl-illustration,.learning-art img{max-height:150px;width:100%;object-fit:contain}
.cooperation-cta{margin-block:52px 24px;padding:30px 35px;border-radius:20px}
.cooperation-cta h2{font-size:28px}
.cooperation-pearl{background:linear-gradient(115deg,#eaf0fc,#f9fbff);border:1px solid #fff;color:var(--text);box-shadow:var(--shadow);display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:12px 30px}
.cooperation-pearl p{color:var(--muted)}
.cooperation-pearl::before{display:none}
.cooperation-pearl>div:first-child{grid-column:1;grid-row:1}
.cooperation-pearl>.button{grid-column:1;grid-row:2;justify-self:start}
.cooperation-pearl .cta-illustration{grid-column:2;grid-row:1/3;max-height:170px}
.cooperation-pearl .cta-illustration img{height:170px;object-fit:contain}
.page-intro{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(230px,.9fr);min-height:250px;gap:35px;margin-block-end:30px}
.page-illustration{width:100%;max-width:380px;justify-self:center}
.page-illustration img{max-height:270px;width:100%;object-fit:contain}
.page-intro h1{font-size:42px;line-height:1.55;font-weight:900}
.about-hero{grid-template-columns:1.3fr 1fr;gap:30px;min-height:290px}
.about-hero .hero-art picture,.about-hero .hero-art img{mix-blend-mode:normal}
.about-hero .hero-art img{max-height:340px;object-fit:contain}
.about-hero h1{font-size:43px;line-height:1.55}
.tab-list{margin-block:5px 27px;max-width:660px}
.service-card{padding:26px;scroll-margin-top:calc(var(--header-h) + 24px)}
.service-card h3{font-size:23px}
.service-card .icon-box{width:78px;height:78px}
.service-card .icon-box .icon{width:43px;height:43px}
.service-illustration{display:flex;width:104px;height:100px;align-items:center;justify-content:center}
.service-illustration .pearl-illustration,.service-illustration img{height:100%;width:100%;object-fit:contain}
.article-cover-fallback>.pearl-illustration,.article-cover-fallback>.pearl-illustration img{height:100%;width:100%;object-fit:contain}
.service-grid{gap:20px}
.article-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.article-grid>.article-card{display:grid;grid-template-columns:minmax(120px,.75fr) minmax(0,1.25fr);align-items:stretch;min-height:190px}
.article-grid>.article-card>.article-art{grid-column:1;grid-row:1;min-height:0;background:linear-gradient(140deg,#ecf2fe,#f9fbff);padding:16px 6px}
.article-grid>.article-card>.article-card-body{grid-column:2;grid-row:1;padding:22px 18px}
.article-grid .article-card h3{font-size:22px;line-height:1.6;margin-block:6px 10px}
.article-grid .article-card p{font-size:13px}
.article-art .pearl-illustration,.article-art .pearl-illustration img{height:100%;max-height:215px;object-fit:contain}
.featured-article-list>.article-card:first-child{grid-template-columns:1.3fr 1fr;min-height:250px}
.featured-article-list>.article-card:first-child>.article-art{grid-column:2;padding:15px;min-height:230px}
.featured-article-list>.article-card:first-child>.article-card-body{grid-column:1;padding:32px}
.featured-article-list>.article-card:first-child h3{font-size:31px}
.featured-article-list>.article-card:first-child .pearl-illustration img{max-height:255px}
.contact-grid{grid-template-columns:.85fr 1.3fr;gap:22px}
.contact-card{padding:26px 22px}
.faq{margin-block:45px}
.site-footer{margin-block-start:35px;background:linear-gradient(150deg,#f8faffcc,#ebf1fb88);padding-block:42px 20px}
.footer-grid{display:grid;grid-template-columns:1.35fr 1fr .8fr 1.05fr;gap:30px;align-items:start}
.footer-brand>p{font-size:14px;line-height:2;color:var(--muted);max-width:280px;margin-block:17px 0}
.footer-column{min-width:0}
.footer-heading{font-size:18px;font-weight:800;margin-block:0 15px}
.footer-links,.footer-contact-list{list-style:none;padding:0;margin:0}
.footer-links li,.footer-contact-list li{margin:0}
.footer-links a{display:inline-flex;align-items:center;min-height:44px;font-size:13px;line-height:1.8;padding-block:7px;color:var(--muted)}
.footer-links a:hover{color:var(--link)}
.footer-contact-link{display:flex;align-items:center;gap:10px;padding-block:8px;min-height:44px;font-size:14px}
.footer-contact-link .icon{width:20px;height:20px}
.footer-contact-label{color:var(--text)}
.footer-contact-value{direction:ltr;unicode-bidi:isolate;font-size:13px;overflow-wrap:anywhere}
.footer-bottom{border-block-start:1px solid #dbe3f1;padding-block-start:18px;margin-block-start:26px;justify-content:space-between;align-items:center;gap:15px}
.footer-copyright{margin:0;font-size:12px;color:var(--muted)}
.footer-bottom a{font-size:12px;min-height:44px}
@media(min-width:981px){.header-inner>.brand{grid-column:1}.desktop-navigation{grid-column:2}.header-consult{grid-column:3}}
@media(max-width:1100px){.header-inner{gap:18px}.menu{gap:17px}.menu a{font-size:13px}.brand .brand-wordmark strong{font-size:22px}.brand .brand-mark{width:30px;height:34px}.home-hero h1{font-size:40px}.home-hero .button{min-width:155px;padding-inline:19px}.feature-card{padding:20px 15px;gap:10px}.feature-card h2{font-size:18px}.feature-illustration{width:68px;height:78px}.footer-grid{gap:20px;grid-template-columns:1.25fr 1fr .8fr 1.05fr}.featured-projects>.project-card{grid-template-columns:1fr 1fr}.featured-projects .project-copy h3{font-size:20px}.article-grid .article-card h3{font-size:20px}}
@media(max-width:980px){
 :root{--header-h:76px}
 .header-inner{grid-template-columns:minmax(0,1fr) auto;min-height:76px}
 .desktop-navigation,.header-consult{display:none}
 .has-js .menu-toggle:not([hidden]){display:flex;justify-self:end;grid-column:2}
 .no-js .desktop-navigation,.no-dialog .desktop-navigation{display:block;grid-column:1/-1;justify-self:stretch}
 .no-js .header-inner,.no-dialog .header-inner{padding-block:14px}
 .no-js .desktop-navigation .menu,.no-dialog .desktop-navigation .menu{flex-wrap:wrap;gap:8px 18px}
 body{padding-block-end:calc(var(--mobile-cta-h) + var(--safe-bottom))}
 .mobile-cta{position:fixed;display:block;inset-block-end:0;inset-inline:0;z-index:35;padding:12px 0 calc(12px + var(--safe-bottom));background:#f8faffed;border-block-start:1px solid #fff;box-shadow:0 -5px 25px #203e7610;backdrop-filter:blur(15px)}
 .mobile-cta .button{width:100%;min-height:50px;font-size:15px}
 .modal-open .mobile-cta{visibility:hidden}
 .toast{inset-block-end:calc(var(--mobile-cta-h) + var(--safe-bottom) + 14px)}
 .page-intro h1{font-size:36px}.page-intro{gap:20px;grid-template-columns:minmax(0,1.3fr) minmax(210px,.9fr)}
 .footer-grid{grid-template-columns:1fr 1fr;gap:30px 35px}
 .footer-brand>p{max-width:360px}
 .featured-projects>.project-card{display:flex;flex-direction:column-reverse;align-items:stretch}
 .featured-projects>.project-card>.project-image-link{aspect-ratio:1.7}
 .featured-projects>.project-card>.project-copy{padding:8px}
 .featured-projects .card-bottom{justify-content:space-between;gap:12px}
 .learning-art{width:180px}
 .learning-banner h2{font-size:25px}
 .cooperation-pearl{grid-template-columns:1fr auto;gap:20px}.cooperation-pearl .cta-illustration{grid-column:2;grid-row:1/3;width:180px}.cooperation-pearl .button{grid-column:1;justify-self:start}
}
@media(max-width:800px){
 .home-hero{grid-template-columns:1fr;min-height:0;gap:22px;padding-block:32px 20px}
 .home-hero h1{font-size:clamp(32px,5.2vw,44px);line-height:1.6;letter-spacing:-.5px;max-width:650px}
 .home-hero .hero-art{width:100%;max-width:500px;margin-inline:auto}
 .home-hero .button-row{gap:12px}
 .feature-card{padding:24px;gap:22px}.feature-card h2{font-size:22px}.feature-illustration{width:94px;height:100px}
 .about-hero{grid-template-columns:1fr;gap:22px}.about-hero .hero-art{width:100%;max-width:400px;margin-inline:auto}
 .page-intro{grid-template-columns:minmax(0,1fr) 230px;min-height:210px}
 .page-intro h1{font-size:33px}.page-illustration img{max-height:210px}
 .article-grid>.article-card{grid-template-columns:1fr;display:flex;flex-direction:column}
 .article-grid>.article-card>.article-art{min-height:170px;max-height:210px}
 .article-grid>.article-card>.article-card-body{padding:22px}
 .featured-article-list>.article-card:first-child{display:grid;grid-template-columns:1.2fr 1fr}
 .featured-article-list>.article-card:first-child>.article-art{max-height:none;min-height:220px}
 .featured-article-list>.article-card:first-child>.article-card-body{padding:25px}
 .featured-article-list>.article-card:first-child h3{font-size:25px}
 .contact-grid{grid-template-columns:1fr}
 .contact-channels{grid-template-columns:repeat(3,minmax(0,1fr))}
 .contact-card{padding:20px 16px}
 .section{margin-block:48px}
 .cooperation-cta{margin-block:45px 20px}
}
@media(max-width:600px){
 .page-intro{grid-template-columns:1fr;gap:20px;min-height:0;margin-block-end:28px}
 .page-illustration{max-width:270px;justify-self:center}.page-illustration img{max-height:210px}
 .page-intro h1,.about-hero h1{font-size:32px}
 .learning-banner{display:grid;grid-template-columns:minmax(0,1fr) 115px;padding:23px;gap:15px}
 .learning-banner>div{grid-column:1/-1}.learning-banner h2{font-size:25px}
 .learning-banner .button{grid-column:1;grid-row:2;margin:0;font-size:14px;padding-inline:16px;justify-self:start}
 .learning-art{grid-column:2;grid-row:2;width:115px;max-height:105px}.learning-art img{max-height:105px}
 .cooperation-pearl{grid-template-columns:1fr;padding:25px}.cooperation-pearl .cta-illustration{display:none}.cooperation-pearl .button{width:100%}
 .footer-grid{gap:28px 24px}.footer-brand,.footer-column:last-child{grid-column:1/-1}.footer-heading{font-size:18px}
 .footer-bottom{display:block}.footer-bottom>*{margin-block:8px}
}
@media(max-width:520px){
 .container{width:calc(100% - 32px)}
 .home-hero h1{font-size:32px;line-height:1.65;letter-spacing:-.45px}
 .home-hero .hero-art{max-width:420px}
 .home-hero .button{width:100%;min-width:0}
 .hero-description{font-size:16px}
 .feature-card{flex-direction:column;padding:28px 22px;gap:16px}.feature-illustration{width:110px;height:112px}
 .project-grid,.project-grid.featured-projects,.article-grid{grid-template-columns:1fr}
 .featured-projects>.project-card{padding:16px}.featured-projects .project-copy h3{font-size:23px}
 .project-copy{padding:16px 7px 6px}
 .featured-article-list>.article-card:first-child{display:flex;flex-direction:column}
 .featured-article-list>.article-card:first-child>.article-art{min-height:180px;max-height:215px}
 .featured-article-list>.article-card:first-child>.article-card-body{padding:24px}
 .featured-article-list>.article-card:first-child h3{font-size:23px}
 .article-grid .article-card h3{font-size:22px}
 .contact-channels{grid-template-columns:1fr}.contact-card{display:flex;padding:23px;gap:18px}
 .service-card{padding:25px}.service-card h3{font-size:23px}
 .service-grid,.process-grid{grid-template-columns:1fr}
 .footer-contact-link{flex-wrap:wrap}
 .brand .brand-wordmark strong{font-size:23px}.brand .brand-wordmark>span{font-size:14px}.brand .brand-mark{width:30px;height:34px}
 .brand-logo{max-width:155px;max-height:50px}
}
@media(max-width:360px){.home-hero h1{font-size:29px}.home-hero .eyebrow{font-size:12px}.brand .brand-wordmark strong{font-size:21px}.footer-grid{gap:25px 15px}.footer-links a{font-size:12px}}
@media print{.site-footer,.mobile-cta{display:none}.page-illustration{max-width:180px}body{padding:0}}
.preserved-content{padding:clamp(18px,3vw,36px);min-width:0;overflow-wrap:anywhere}.preserved-content .elementor-section,.preserved-content .e-con,.preserved-content .elementor-container,.preserved-content .elementor-column,.preserved-content .elementor-widget-wrap{max-width:100%!important;min-width:0!important;width:100%!important;display:block!important;position:relative!important;inset:auto!important;min-height:0!important;background:none!important;box-shadow:none!important;padding:0!important;margin:0!important}.preserved-content .elementor-widget{max-width:100%;margin-block:12px!important}.preserved-content img{max-width:100%;height:auto}.preserved-content .elementor-heading-title{color:inherit!important;font-family:inherit!important;font-size:clamp(20px,2vw,30px)!important}.preserved-content .elementor-background-overlay{display:none!important}

/* 1.0.4: no decorative black hover underlines, preserve keyboard focus */
body.arshism-pearl a, body.arshism-pearl a:hover, body.arshism-pearl a:focus-visible {text-decoration:none!important;}
body.arshism-pearl a:hover {color:var(--primary,#2f5bff);}
body.arshism-pearl .button.primary:hover {color:#fff;}
body.arshism-pearl .site-header .menu a:not([aria-current]):hover::after {display:none!important;}
body.arshism-pearl a:focus-visible {outline:2px solid #2f5bff;outline-offset:4px;}
.legacy-gallery-card{margin:0;padding:14px;min-width:0;overflow:hidden;}
.legacy-gallery-card img{width:100%;height:auto;aspect-ratio:12/7;object-fit:contain;display:block;background:#eef3fc;border-radius:14px;}
.legacy-gallery-card figcaption{padding:10px 4px 2px;overflow-wrap:anywhere;}
.about-details .value-card h3{font-size:20px;line-height:1.7;}

/* 1.0.5: color-only navigation hover, retain active marker and keyboard focus. */
body.arshism-pearl .site-header .menu a,body.arshism-pearl .mobile-menu .menu a {transition:color .18s ease; text-decoration:none!important;}
body.arshism-pearl .site-header .menu a:hover,body.arshism-pearl .site-header .menu a:focus-visible,body.arshism-pearl .mobile-menu .menu a:hover,body.arshism-pearl .article-card a:hover,body.arshism-pearl .footer-links a:hover {color:#2f5bff!important;text-decoration:none!important;box-shadow:none!important;border-bottom-color:transparent!important;}
body.arshism-pearl .site-header .menu a:not([aria-current]):not(.is-current):hover::after {content:none!important;}
@media(prefers-reduced-motion:reduce){body.arshism-pearl .menu a{transition:none;}}

/* 1.1.0: theme switcher, non-cropping portfolio imagery, darker night palette */
.header-actions{display:flex;align-items:center;justify-self:end;gap:12px}
.theme-toggle{display:inline-flex;align-items:center;justify-content:center;width:46px;height:46px;border-radius:14px;border:1px solid #dbe3f3;background:linear-gradient(145deg,#fff,#eef3ff);box-shadow:0 8px 18px #203e7610;color:#1748ff;padding:0}
.theme-toggle-icon{font-size:20px;line-height:1}
.theme-toggle:hover{transform:translateY(-1px)}
.theme-toggle:focus-visible{outline:2px solid #2f5bff;outline-offset:4px}
@media(min-width:981px){.header-actions{grid-column:3}}
@media(max-width:980px){.header-actions{gap:10px}.header-actions .header-consult{display:none}.theme-toggle{width:44px;height:44px;border-radius:12px}.header-inner{grid-template-columns:auto 1fr auto auto}.brand{grid-column:1}.header-actions{grid-column:3}.has-js .menu-toggle:not([hidden]){grid-column:4}}
@media(max-width:520px){.header-inner{grid-template-columns:auto 1fr auto auto}.theme-toggle{width:42px;height:42px}}

/* Portfolio imagery: never crop, never show forced empty bands from fixed frames */
body.arshism-pearl .project-image-link,
body.arshism-pearl .featured-projects>.project-card>.project-image-link,
body.arshism-pearl .legacy-gallery-card img{aspect-ratio:auto !important}
body.arshism-pearl .project-image-link{display:block;background:linear-gradient(180deg,#f8fbff,#eff4fc);border:1px solid #e2e8f4;overflow:hidden}
body.arshism-pearl .project-image-link picture,
body.arshism-pearl .project-image-link img,
body.arshism-pearl .project-image-link .pearl-illustration,
body.arshism-pearl .project-image-link .pearl-illustration img,
body.arshism-pearl .legacy-gallery-card img{width:100%;height:auto !important;object-fit:contain !important;display:block}
body.arshism-pearl .project-card:hover .project-image-link img,
body.arshism-pearl .project-card:hover .project-image-link .pearl-illustration img{transform:none !important}
body.arshism-pearl .legacy-gallery-card{padding:16px}
body.arshism-pearl .legacy-gallery-card img{background:transparent;border-radius:16px}
body.arshism-pearl .featured-projects>.project-card>.project-image-link{border:1px solid #e2e8f4;background:linear-gradient(180deg,#f8fbff,#eff4fc);overflow:hidden}
@media(max-width:980px){body.arshism-pearl .featured-projects>.project-card>.project-image-link{aspect-ratio:auto !important}}

/* Hide conceptual framing language from portfolio presentation */
body.arshism-pearl .concept-note,
body.arshism-pearl .badge{display:none}

/* Dark theme palette inspired by the previous blue night look */
html[data-theme="dark"]{color-scheme:dark}
html[data-theme="dark"] body{background:radial-gradient(circle at 20% 0%,#123c9a33,transparent 35%),radial-gradient(circle at 80% 20%,#1b4db433,transparent 32%),linear-gradient(180deg,#06101f,#081426 45%,#091a31 100%);color:#eef4ff}
html[data-theme="dark"] body,
html[data-theme="dark"] .hero-accent{--text:#eef4ff;--muted:#9db0d1;--background:#081426;--border:#1a2a48;--link:#80a7ff;--primary:#2f6bff;--shadow:0 18px 40px #01050d45,0 6px 16px #0000002a}
html[data-theme="dark"] ::selection{background:#224ca4;color:#f7fbff}
html[data-theme="dark"] .site-header{background:#07101ff2;border-block-end:1px solid #172946;box-shadow:0 10px 28px #01050d30}
html[data-theme="dark"] .site-footer{background:linear-gradient(180deg,#08111f,#071221);border-block-start:1px solid #172946}
html[data-theme="dark"] .glass,
html[data-theme="dark"] .mobile-menu,
html[data-theme="dark"] .consult-dialog,
html[data-theme="dark"] .project-dialog,
html[data-theme="dark"] .page-symbol,
html[data-theme="dark"] .tab-button,
html[data-theme="dark"] .chip,
html[data-theme="dark"] .contact-card,
html[data-theme="dark"] .subject-options label{background:linear-gradient(180deg,#0b1830cc,#10203fcc) !important;border-color:#1a2a48 !important;color:#eef4ff;box-shadow:var(--shadow)}
html[data-theme="dark"] .menu .sub-menu{background:#0d1d36;border-color:#213253}
html[data-theme="dark"] .project-image-link,
html[data-theme="dark"] .featured-projects>.project-card>.project-image-link,
html[data-theme="dark"] .legacy-gallery-card img,
html[data-theme="dark"] .article-grid>.article-card>.article-art,
html[data-theme="dark"] .learning-banner,
html[data-theme="dark"] .cooperation-pearl,
html[data-theme="dark"] .page-intro,
html[data-theme="dark"] .page-illustration,
html[data-theme="dark"] .article-cover-fallback{background:linear-gradient(180deg,#0b1830,#0f2142) !important;border-color:#1d2f53 !important}
html[data-theme="dark"] .learning-banner,
html[data-theme="dark"] .cooperation-pearl{color:#eef4ff}
html[data-theme="dark"] .feature-card,
html[data-theme="dark"] .project-card,
html[data-theme="dark"] .article-card,
html[data-theme="dark"] .service-card,
html[data-theme="dark"] .value-card,
html[data-theme="dark"] .process-card,
html[data-theme="dark"] .newsletter,
html[data-theme="dark"] .project-full,
html[data-theme="dark"] .delivery-strip{border-color:#1a2a48}
html[data-theme="dark"] .icon-box{background:linear-gradient(145deg,#11254a,#0a1831);box-shadow:inset 0 0 0 1px #233961,0 10px 20px #00000022;color:#7da2ff}
html[data-theme="dark"] .button.secondary{background:#0d1d36;border-color:#31476d;color:#eef4ff}
html[data-theme="dark"] .button.white{background:#eef4ff;color:#1748ff}
html[data-theme="dark"] .theme-toggle{background:linear-gradient(145deg,#10203f,#0b1830);border-color:#25395e;color:#ffd36a;box-shadow:0 10px 24px #00000025}
html[data-theme="dark"] .mobile-cta{background:#091424f0;border-block-start:1px solid #1a2a48;box-shadow:0 -12px 34px #00000034}
html[data-theme="dark"] .footer-bottom{border-block-start:1px solid #172946}
html[data-theme="dark"] .footer-links a,
html[data-theme="dark"] .footer-contact-label,
html[data-theme="dark"] .footer-brand>p,
html[data-theme="dark"] .footer-copyright,
html[data-theme="dark"] .feature-card p,
html[data-theme="dark"] .project-copy p,
html[data-theme="dark"] .section-head p,
html[data-theme="dark"] .value-card p,
html[data-theme="dark"] .article-card p,
html[data-theme="dark"] .contact-card p,
html[data-theme="dark"] .service-card p,
html[data-theme="dark"] .process-card p,
html[data-theme="dark"] .filter-result-count,
html[data-theme="dark"] .form-privacy,
html[data-theme="dark"] .optional{color:#9db0d1}
html[data-theme="dark"] .brand .brand-wordmark strong,
html[data-theme="dark"] .brand strong,
html[data-theme="dark"] .menu a[aria-current],
html[data-theme="dark"] .menu a.is-current,
html[data-theme="dark"] .footer-links a:hover,
html[data-theme="dark"] a:hover{color:#80a7ff !important}
html[data-theme="dark"] .quick-view{color:#c9d7f5}
html[data-theme="dark"] .tab-button[aria-selected=true],
html[data-theme="dark"] .chip.is-active{background:linear-gradient(145deg,#2e6fff,#194eea) !important;border-color:#2f6bff !important;color:#fff}
html[data-theme="dark"] .subject-option:has(input:checked),
html[data-theme="dark"] .subject-options label:has(input:checked){border-color:#2f6bff !important;box-shadow:0 0 0 1px #2f6bff inset}
html[data-theme="dark"] .reading-progress{background:#112244}
html[data-theme="dark"] .reading-progress span{background:#6ca0ff}
html[data-theme="dark"] .toast{background:#0d1d36;border:1px solid #22365b;color:#eef4ff}
html[data-theme="dark"] body.arshism-pearl .site-header .menu a:hover,
html[data-theme="dark"] body.arshism-pearl .site-header .menu a:focus-visible,
html[data-theme="dark"] body.arshism-pearl .mobile-menu .menu a:hover,
html[data-theme="dark"] body.arshism-pearl .article-card a:hover,
html[data-theme="dark"] body.arshism-pearl .footer-links a:hover{color:#80a7ff !important}

/* 1.1.1: prevent the featured two-column layout from squeezing/cropping screenshots. */
body.arshism-pearl .featured-projects>.project-card{display:flex;flex-direction:column;align-items:stretch;gap:12px;min-height:0;padding:16px}
body.arshism-pearl .featured-projects>.project-card>.project-image-link{width:100%;margin:0;order:0}
body.arshism-pearl .featured-projects>.project-card>.project-copy{width:100%;padding:8px;order:1}
body.arshism-pearl .project-card .project-image-link img{max-height:none;min-height:0}
body.arshism-pearl .project-card .project-image-link picture{aspect-ratio:auto;height:auto}
body.arshism-pearl .legacy-gallery-card img{max-height:none}
html[data-theme="dark"] input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
html[data-theme="dark"] textarea,
html[data-theme="dark"] select{background:#0b1b34;color:#eef4ff;border-color:#263e63}
html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder{color:#8198be}
html[data-theme="dark"] dialog::backdrop{background:#010610b8}

/* 1.1.1 dark-theme polish for components that have their own fixed light paints. */
html[data-theme="dark"] .newsletter-panel,
html[data-theme="dark"] .newsletter{background:linear-gradient(145deg,#10264b,#0d1b32);border-color:#1d3255;color:#eef4ff}
html[data-theme="dark"] .close-dialog{background:#102344;color:#eef4ff;border-color:#263e63}
html[data-theme="dark"] .subject-options label:has(input:checked){background:#17386e !important;color:#eff5ff !important;border-color:#3278ff !important}
html[data-theme="dark"] .form-field input,
html[data-theme="dark"] .form-field textarea,
html[data-theme="dark"] .form-field select,
html[data-theme="dark"] .arshism-request-form input:not([type=radio]):not([type=checkbox]):not([type=hidden]),
html[data-theme="dark"] .arshism-request-form textarea,
html[data-theme="dark"] .arshism-newsletter-form input{background:#0b1b34 !important;color:#eef4ff !important;border-color:#263e63 !important}
html[data-theme="dark"] .home-hero .hero-art picture img{mix-blend-mode:screen;filter:invert(1) hue-rotate(180deg) saturate(1.25) contrast(1.1)}
@media(prefers-reduced-motion:reduce){.theme-toggle{transition:none !important}}

/* 1.1.3: previously cropped article thumbnails and saved legacy cover images.
   Natural image aspect is preserved at every breakpoint. */
body.arshism-pearl .article-card .article-art.has-cover,
body.arshism-pearl .article-grid>.article-card>.article-art.has-cover,
body.arshism-pearl .featured-article-list>.article-card:first-child>.article-art.has-cover{
  display:block;min-height:0;max-height:none;aspect-ratio:auto;
  padding:0;overflow:visible;background:transparent;
}
body.arshism-pearl .article-card .article-art.has-cover img,
body.arshism-pearl .featured-article-list>.article-card:first-child>.article-art.has-cover img,
body.arshism-pearl .article-cover img{
  display:block;width:100%;height:auto!important;max-height:none!important;
  aspect-ratio:auto;object-fit:contain!important;transform:none!important;
}
body.arshism-pearl .legacy-content .band{aspect-ratio:auto!important;height:auto!important;overflow:visible}
body.arshism-pearl .legacy-content .band img{display:block;width:100%;height:auto!important;max-height:none!important;object-fit:contain!important}
