/* General pages only. Legacy CSS remains unchanged for the case studies.
   Adapted from design/index_new.css to the existing semantic HTML. */
body.visual-system {
 --home-navy:#000020; --home-blue:#330089; --home-teal:#16CABD;
 --home-surface:#F5F7FA; --home-card:#E2E7EF; --home-card-alt:#D9E0EA; --home-white:#FAFBFC;
 --color-bg:var(--home-surface); --color-fg:var(--home-navy); --color-card:var(--home-card);
 --color-blue:var(--home-blue); --color-accent:var(--home-teal); --color-on-accent:var(--home-navy);
 --color-accent-light:color-mix(in srgb,var(--home-teal) 14%,var(--home-white));
 --color-muted:color-mix(in srgb,var(--home-navy) 65%,var(--home-surface));
 --color-border:color-mix(in srgb,var(--home-navy) 28%,var(--home-surface));
 --portfolio-shadow:var(--home-teal);
 font-family:Inter,system-ui,sans-serif; background:var(--home-surface); color:var(--home-navy);
}
body.visual-system ::selection{background:var(--home-teal);color:var(--home-navy)}
body.visual-system :is(p,a,button,span,li,td,th){overflow-wrap:break-word}
body.visual-system :is(div,section,article,aside,form,fieldset){min-width:0}
body.visual-system :is(a,button,summary,[role=button]){cursor:pointer}
body.visual-system :is(button:disabled,[aria-disabled=true]){cursor:not-allowed}
body.visual-system :is(a,button,input,select,textarea,summary):focus-visible{outline:3px solid var(--home-teal);outline-offset:3px}
body.visual-system :is(main a,main button):focus-visible{outline-color:var(--home-blue)}
body.visual-system :is(p,li){font-size:16px;line-height:1.625}
body.visual-system :is(h1,h2){font-family:'Playfair Display',Georgia,serif;font-weight:600;letter-spacing:-.03em}
body.visual-system h1{font-size:72px;line-height:.98}
body.visual-system h2{font-size:40px;line-height:1.02}
body.visual-system h3{font-size:24px;line-height:1.25}
body.visual-system :is(.eyebrow,.micro-label,.case-tag,.product-type,.product-price,.case-no){font-size:13px;line-height:1.5;font-weight:500;letter-spacing:.05em}
body.visual-system :is(.site-container,main>section,.hero-copyblock){max-width:1085px;margin-inline:auto;padding-inline:24px;width:100%}
body.visual-system main>section{padding-block:64px}
body.visual-system .site-header{position:sticky;top:0;z-index:50;min-height:calc(56px + env(safe-area-inset-top,0px));padding-top:env(safe-area-inset-top,0px);padding-bottom:0;background:var(--home-navy);color:var(--home-white);padding-inline:max(24px,calc((100% - 1037px)/2),env(safe-area-inset-left,0px));border:0}
body.visual-system .site-header :is(a,button){color:var(--home-white);min-height:44px;display:inline-flex;align-items:center}
body.visual-system .site-header :is(a,button):hover{color:var(--home-teal)}
body.visual-system .site-header nav{gap:20px}
body.visual-system .site-header .menu-toggle span{background:currentColor}
body.visual-system .site-header .menu-toggle{display:none}
body.visual-system main>:is(.page-hero,.about-hero){max-width:none;padding:80px max(24px,calc((100% - 1037px)/2));background:var(--home-blue);color:var(--home-white);border-bottom:0}
body.visual-system :is(.page-hero,.about-hero,.home-hero) :is(h1,.eyebrow,p){color:inherit}
body.visual-system :is(.page-hero,.about-hero)>p:last-child,body.visual-system .hero-copy{font-size:20px;line-height:1.5;max-width:52ch}
body.visual-system.projects main>.page-hero,body.visual-system.tools main>.page-hero{background:var(--home-teal);color:var(--home-navy)}
body.visual-system.home main>.home-hero{max-width:none;padding:0;background:var(--home-blue);color:var(--home-white)}
body.visual-system.home .hero-copyblock{padding-block:80px}
body.visual-system.home h1{font-weight:400;letter-spacing:-.035em}
body.visual-system.home h1 em{font-weight:600}
body.visual-system :is(.button,.secondary-action,.product-button,.build-button,.back-button){min-height:44px;font-size:16px;font-weight:600}
body.visual-system.home .hero-actions .secondary-action{background:var(--home-teal);color:var(--home-navy);border:2px solid var(--home-navy);box-shadow:4px 4px 0 var(--home-navy)}
body.visual-system.home .hero-actions .secondary-action:hover{background:var(--home-white);transform:translate(2px,2px);box-shadow:2px 2px 0 var(--home-navy)}
body.visual-system.home .hero-facts{border:0;padding-top:24px;gap:8px 0;font-size:13px}
body.visual-system.home .hero-facts>span{padding-inline:20px}
body.visual-system.home .hero-facts>span:first-child{padding-left:0}
body.visual-system.home .hero-facts>span+span{border-left:2px solid var(--home-teal)}
body.visual-system.home .principles article{background:var(--home-teal);border:0;padding:24px;min-height:168px}
body.visual-system.home .principles h3{font-family:'Playfair Display',Georgia,serif;font-weight:600}
body.visual-system.home .principle-cta{min-height:44px;align-items:center;font-size:16px;font-weight:700}
body.visual-system.projects{--portfolio-shadow:var(--home-blue)}
body.visual-system .cases-list .case-row{align-items:start;border:2px solid var(--home-navy);box-shadow:5px 5px 0 var(--portfolio-shadow);background:var(--home-card)}
body.visual-system .cases-list .case-row:nth-child(even){background:var(--home-card-alt)}
body.visual-system .cases-list .case-row:hover{background:var(--home-surface);box-shadow:2px 2px 0 var(--portfolio-shadow);transform:translate(3px,3px)}
body.visual-system .cases-list .case-row h2{font-size:30px;line-height:1.2;font-weight:600}
body.visual-system .cases-list .case-row .case-no{color:var(--home-teal);font-size:14px;font-weight:600}
body.visual-system .bio-profile{border-color:var(--home-navy)}
body.visual-system .bio-facts{gap:0;padding:0;border-top:1px solid var(--home-navy);border-bottom:1px solid var(--home-navy)}
body.visual-system .bio-facts>div{padding:22px 18px;border-left:1px solid var(--home-navy)}
body.visual-system .bio-facts>div:first-child{border-left:0;padding-left:0}
body.visual-system .bio-facts p span{font-size:13px;letter-spacing:.05em;color:var(--home-blue);text-transform:uppercase}
body.visual-system .bio-facts strong{font-size:16px}
body.visual-system .fact-icon{display:block;flex-shrink:0;width:20px;height:20px;background:var(--home-blue);mask:var(--fact-mask) center/contain no-repeat}
body.visual-system .fact-icon img{visibility:hidden}
body.visual-system .bio-facts>div:nth-child(1) .fact-icon{--fact-mask:url('/assets/experience/language.svg')}
body.visual-system .bio-facts>div:nth-child(2) .fact-icon{--fact-mask:url('/assets/experience/workauthorization.svg')}
body.visual-system .bio-facts>div:nth-child(3) .fact-icon{--fact-mask:url('/assets/experience/03-based-in.svg')}
body.visual-system .bio-facts>div:nth-child(4) .fact-icon{--fact-mask:url('/assets/experience/focus.svg')}
body.visual-system .timeline{border-top:1px solid var(--home-navy)}
body.visual-system .timeline article{background:transparent;border-bottom:1px solid var(--home-navy)}
body.visual-system .timeline article>span{font-size:14px;font-weight:600}
body.visual-system .timeline h2{font-size:36px;line-height:1.2}
body.visual-system .timeline h2 a{text-decoration-color:var(--home-teal);text-decoration-thickness:2px;text-underline-offset:5px}
body.visual-system .timeline h2 a:hover{color:var(--home-blue);text-decoration-color:var(--home-blue)}
body.visual-system .experience-resume .secondary-action{white-space:normal;border:2px solid var(--home-navy);background:var(--home-surface);box-shadow:5px 5px 0 var(--home-teal);padding:10px 18px}
body.visual-system .experience-resume .secondary-action:hover{color:var(--home-navy);background:var(--home-teal);box-shadow:2px 2px 0 var(--home-teal);transform:translate(3px,3px)}
body.visual-system.resources{background:var(--home-white)}
body.visual-system .resource-catalog{grid-template-columns:repeat(2,minmax(0,1fr))}
body.visual-system .resource-product{background:var(--home-card);border:0;border-radius:10px;padding:36px}
body.visual-system .resource-product h3{font-size:24px;line-height:1.25}
body.visual-system .product-topline{color:var(--home-blue);flex-wrap:wrap;gap:12px}
body.visual-system .product-type{color:inherit}
body.visual-system .product-button{border:0;border-radius:6px;padding:11px 20px;background:var(--home-teal);color:var(--home-navy)}
body.visual-system .product-button:hover{background:color-mix(in srgb,var(--home-teal) 78%,var(--home-white));color:var(--home-navy);transform:translateY(-2px)}
body.visual-system .site-footer{background:var(--home-navy);color:var(--home-white);border-color:color-mix(in srgb,var(--home-white) 12%,transparent);padding-bottom:env(safe-area-inset-bottom,0px)}
body.visual-system :is(.site-footer,.contact-section) :is(h2,.eyebrow){color:inherit}
body.visual-system .footer-inner>div{color:var(--home-white);font-size:13px}
body.visual-system .footer-inner{border-color:color-mix(in srgb,var(--home-white) 12%,transparent)}
body.visual-system :is(.site-footer,.contact-section) a{min-height:44px;display:inline-flex;align-items:center;max-width:100%;overflow-wrap:anywhere}
body.visual-system .footer-inner>div{align-items:center;flex-wrap:wrap}
body.visual-system :is(.site-footer,.contact-section) a:hover{color:var(--home-teal)}
body.visual-system main>.contact-section{max-width:none;padding-inline:max(24px,calc((100% - 1037px)/2));background:var(--home-navy);color:var(--home-white);border:0}
body.visual-system .footer-links{border-color:color-mix(in srgb,var(--home-white) 28%,transparent)}
/* Tools retain native details, forms, inputs, IDs, result containers and scripts. */
body.visual-system.tools .tool-accordion{gap:22px}
body.visual-system.tools .tool-disclosure{border:2px solid var(--home-navy);background:var(--home-white);box-shadow:7px 7px 0 var(--home-teal);overflow:visible}
body.visual-system.tools .tool-disclosure>summary{min-height:96px;padding:24px 28px;background:var(--home-blue);color:var(--home-white);grid-template-columns:minmax(0,1fr) 32px;gap:18px}
body.visual-system.tools .tool-disclosure>summary h2{font-family:'Playfair Display',Georgia,serif;font-size:clamp(1.65rem,3vw,2.4rem);line-height:1.08;color:inherit;font-weight:600}
body.visual-system.tools .tool-disclosure>summary .tool-toggle{color:var(--home-teal);font-size:32px}
body.visual-system.tools .tool-disclosure>summary:hover{background:color-mix(in srgb,var(--home-blue) 88%,var(--home-white))}
body.visual-system.tools .tool-disclosure[open]{box-shadow:3px 3px 0 var(--home-teal);transform:translate(4px,4px)}
body.visual-system.tools .tool-panel{padding:36px;background:var(--home-white);border-top:2px solid var(--home-navy)}
body.visual-system.tools .tool-panel:before{display:none}
body.visual-system.tools .tool-layout{grid-template-columns:minmax(210px,3fr) minmax(0,9fr);gap:40px}
body.visual-system.tools #hypothesis-builder .tool-layout{grid-template-columns:minmax(210px,3fr) minmax(0,9fr)}
body.visual-system.tools .tool-intro{padding-right:32px;border-right:1px solid var(--home-navy);max-width:none}
body.visual-system.tools .tool-intro h3{font-size:24px;line-height:1.25}
body.visual-system.tools .tool-intro p{font-size:16px}
body.visual-system.tools :is(.tool-surface,.calculator-form){background:var(--home-white);padding:24px;box-shadow:5px 5px 0 var(--home-teal);border:2px solid var(--home-navy)}
body.visual-system.tools :is(.tool-surface p,.tool-surface dt,.tool-surface dd,.method-choice){font-size:16px;line-height:1.625}
body.visual-system.tools .tool-surface .field label{font-size:16px;font-weight:600}
body.visual-system.tools :is(.tool-surface small,.tool-surface p.option-example,.tool-feedback,.tool-surface p.tool-feedback,.sample-workspace p.tool-feedback,.quant-disclaimer p,.caution-box p,.method-note,.question-instruction){font-size:13px;line-height:1.55}
body.visual-system.tools .tool-surface .field :is(input,select,textarea){border:1px solid var(--home-navy);background:var(--home-surface);font-size:16px;min-height:48px}
body.visual-system.tools .tool-surface .field :is(input,select,textarea):focus{outline:3px solid var(--home-teal);outline-offset:2px}
body.visual-system.tools .calculator-form .field select{appearance:auto;background-image:none;padding-right:12px}
body.visual-system.tools :is(.build-button,.back-button){background:var(--home-blue);color:var(--home-white);border:2px solid var(--home-navy);box-shadow:4px 4px 0 var(--home-teal);min-height:44px;font-size:16px}
body.visual-system.tools :is(.build-button,.back-button):hover{background:var(--home-blue);color:var(--home-white);transform:translate(2px,2px);box-shadow:2px 2px 0 var(--home-teal)}
body.visual-system.tools details.method-question>summary{background:var(--home-card);color:var(--home-navy);padding:18px 20px;min-height:72px}
body.visual-system.tools details.method-question>summary strong{font-family:Inter,system-ui,sans-serif;font-size:18px;line-height:1.3}
body.visual-system.tools .method-question-heading{grid-template-columns:30px minmax(0,1fr);gap:14px}
body.visual-system.tools .method-question-body{padding:22px 20px 24px;border-top:1px solid var(--home-navy)}
body.visual-system.tools .method-option{grid-template-columns:minmax(0,1fr) 48px;background:var(--home-white);border:1px solid var(--home-navy)}
body.visual-system.tools .method-option:has(input:checked){background:var(--home-teal);box-shadow:3px 3px 0 var(--home-blue)}
body.visual-system.tools .example-toggle{width:48px;min-height:48px;margin:0;align-self:center;color:var(--home-blue)}
body.visual-system.tools .method-choice input[type=checkbox]{appearance:auto;background-image:none;accent-color:var(--home-blue)}
body.visual-system.tools :is(.option-example,.method-card,.ruled-out){background:var(--home-white)}
body.visual-system.tools :is(.method-card,.ruled-out){box-shadow:5px 5px 0 var(--home-teal)}
body.visual-system.tools .mode-tabs{gap:0}
body.visual-system.tools .mode-tabs button{font-size:16px}
body.visual-system.tools .mode-tabs button.active{background:var(--home-teal);color:var(--home-navy)}
body.visual-system.tools .quant-disclaimer{background:var(--color-accent-light);border-left:5px solid var(--home-teal);padding:22px}
body.visual-system.tools :is(.tool-surface p.option-example,#quant-form .quant-disclaimer>p,#qual-form .quant-disclaimer>p){max-width:none;width:100%}
body.visual-system.tools #hypothesis-builder .criterion-control input{min-height:20px;width:20px}
body.visual-system.tools #hypothesis-builder .hypothesis-output{padding:24px}
@media(max-width:1000px){
 body.visual-system.tools .tool-layout,body.visual-system.tools #hypothesis-builder .tool-layout{grid-template-columns:1fr;gap:28px}
 body.visual-system.tools .tool-intro{border-right:0;border-bottom:1px solid var(--home-navy);padding:0 0 24px}
}
@media(max-width:900px){
 body.visual-system .site-header .menu-toggle{display:flex;width:44px;height:44px;justify-content:center}
 body.visual-system .site-header nav{display:none}
 body.visual-system .site-header.menu-open nav{display:flex;max-height:calc(100dvh - 56px);overflow-y:auto}
 body.visual-system .site-header .contact-link{display:none}
 body.visual-system .site-header nav a{min-height:52px;width:100%}
 body.visual-system .bio-facts>div:nth-child(3){border-left:0}
 body.visual-system .bio-facts>div:nth-child(n+3){border-top:1px solid var(--home-navy)}
}
@media(max-width:767px){
 body.visual-system :is(.site-container,main>section,.hero-copyblock){padding-inline:max(20px,env(safe-area-inset-left,0px))}
 body.visual-system .site-header{padding-inline:max(20px,env(safe-area-inset-left,0px))}
 body.visual-system main>:is(.page-hero,.about-hero),body.visual-system.home .hero-copyblock{padding:48px max(20px,env(safe-area-inset-left,0px))}
 body.visual-system main>section{padding-block:48px}
 body.visual-system :is(h1,.home-hero h1){font-size:48px;line-height:1.02}
 body.visual-system h2{font-size:30px;line-height:1.15}
 body.visual-system :is(p,li),body.visual-system.tools :is(.tool-surface p,.tool-surface dt,.tool-surface dd,.method-choice,.tool-intro p){font-size:17px;line-height:1.625}
 body.visual-system :is(.eyebrow,.micro-label,.case-tag,.product-type,.product-price,.case-no),body.visual-system .bio-facts p span{font-size:14px}
 body.visual-system.home .hero-facts{border-left:3px solid var(--home-teal);padding:0 0 0 14px;flex-direction:column;gap:8px}
 body.visual-system.home .hero-facts>span{padding:0}
 body.visual-system.home .hero-facts>span+span{border-left:0}
 body.visual-system.home .principles article{padding:22px;min-height:auto}
 body.visual-system .cases-list .case-row{grid-template-columns:40px minmax(0,1fr);padding:24px;gap:16px}
 body.visual-system .cases-list .case-row h2{font-size:24px}
 body.visual-system .bio-profile{padding:20px 0 0;border-left:0;border-top:1px solid var(--home-navy)}
 body.visual-system .bio-facts{grid-template-columns:1fr}
 body.visual-system .bio-facts>div{border-left:0;border-top:1px solid var(--home-navy);padding:18px 0}
 body.visual-system .bio-facts>div:first-child{border-top:0}
 body.visual-system .timeline article{padding-block:32px}
 body.visual-system .timeline h2{font-size:30px}
 body.visual-system .resource-catalog{grid-template-columns:1fr}
 body.visual-system .resource-product{padding:28px 24px}
 body.visual-system .footer-links{padding:24px 0 0;border-left:0;border-top:1px solid var(--color-border)}
 body.visual-system .footer-inner{align-items:start;flex-direction:column;gap:16px}
 body.visual-system .footer-inner>div{gap:16px}
 body.visual-system.tools .tool-disclosure>summary{padding:20px;min-height:82px;gap:14px;grid-template-columns:minmax(0,1fr) 28px}
 body.visual-system.tools .tool-disclosure>summary h2{font-size:26.4px}
 body.visual-system.tools .tool-panel{padding:22px 20px}
 body.visual-system.tools :is(.tool-surface,.calculator-form){padding:16px}
 body.visual-system.tools :is(.tool-surface small,.tool-surface p.option-example,.tool-feedback,.tool-surface p.tool-feedback,.sample-workspace p.tool-feedback,.quant-disclaimer p,.caution-box p,.method-note,.question-instruction){font-size:14px}
 body.visual-system.tools .method-question-heading{grid-template-columns:minmax(0,1fr)}
 body.visual-system.tools details.method-question>summary{padding:18px;gap:12px}
 body.visual-system.tools .method-question-body{padding:18px}
 body.visual-system.tools .method-choice{padding:12px;grid-template-columns:20px minmax(0,1fr);gap:8px}
 body.visual-system.tools .quant-disclaimer{padding:16px}
 body.visual-system.tools #hypothesis-builder .hypothesis-output{padding:16px}
 body.visual-system.tools #hypothesis-builder .hypothesis-output dl>div{grid-template-columns:1fr}
}
@media(max-width:375px){
 body.visual-system h1,body.visual-system.home .home-hero h1{font-size:40px}
 body.visual-system .cases-list .case-row{grid-template-columns:1fr}
 body.visual-system.tools .tool-panel{padding:20px 12px}
 body.visual-system.tools :is(.tool-surface,.calculator-form){padding:12px}
 body.visual-system.tools .method-question-body{padding:12px}
}
@media(prefers-reduced-motion:reduce){body.visual-system *,body.visual-system *:before,body.visual-system *:after{transition:none!important;animation:none!important;scroll-behavior:auto!important}}
/* Keep the cloned mobile contact link hidden in the desktop navigation. */
body.visual-system .site-header nav .mobile-menu-link{display:none}
body.visual-system .footer-links span{font-size:13px}
body.visual-system.tools :is(input,select,textarea){max-width:100%}
body.visual-system.tools .tool-surface .field label{min-height:24px}
body.visual-system.tools :is(.inline-choices label,.criterion-control label){min-height:44px;display:inline-flex;align-items:center}
@media(max-width:900px){body.visual-system .site-header.menu-open nav .mobile-menu-link{display:flex}}
@media(max-width:767px){body.visual-system .footer-links span{font-size:14px}}
/* Home contact only: compact group with a content-height divider. */
body.visual-system.home #contact.contact-section{align-items:center}
body.visual-system.home #contact .footer-links{align-self:center;height:fit-content;gap:6px;justify-content:flex-start;padding-left:28px}
body.visual-system.home #contact .footer-links a{min-height:0;line-height:1.3;margin:0;padding-block:0}
body.visual-system.home #contact .footer-links>span{margin-top:8px;line-height:1.3}
@media(max-width:767px){
 body.visual-system.home #contact .footer-links{width:100%;padding-left:0;border-left:0;gap:0}
 body.visual-system.home #contact .footer-links a{min-height:44px}
 body.visual-system.home #contact .footer-links>span{margin-top:12px}
}
@media(pointer:coarse){
 body.visual-system.home #contact .footer-links{gap:0}
 body.visual-system.home #contact .footer-links a{min-height:44px}
 body.visual-system.home #contact .footer-links>span{margin-top:12px}
}
/* Experience refinement: whitespace at portrait, compact facts, full-width section color. */
body.visual-system.experience .bio-profile{border:0}
body.visual-system.experience .bio-portrait{aspect-ratio:4/5;object-fit:cover;filter:none}
body.visual-system.experience main>.bio-section{background:var(--home-surface);border-bottom:0}
body.visual-system.experience .bio-facts{grid-template-columns:repeat(4,minmax(0,1fr))}
body.visual-system.experience .bio-facts>div{padding-top:13px;padding-bottom:13px;border-left:0;border-top:0}
body.visual-system.experience main>.timeline-section{max-width:none;background:var(--home-white);padding-inline:max(24px,calc((100% - 1037px)/2));border-top:0}
@media(max-width:767px){
 body.visual-system.experience .bio-profile{border:0}
 body.visual-system.experience .bio-facts{grid-template-columns:1fr}
 body.visual-system.experience .bio-facts>div{padding-block:13px;border-left:0;border-top:1px solid var(--home-navy)}
 body.visual-system.experience .bio-facts>div:first-child{border-top:0}
 body.visual-system.experience main>.timeline-section{padding-inline:max(20px,env(safe-area-inset-left,0px))}
}
/* Method Selector question states are independent of the outer accordion. */
body.visual-system.tools details.method-question>summary:is(:hover,:focus-visible){background:var(--home-teal);color:var(--home-navy)}
body.visual-system.tools details.method-question>summary:is(:hover,:focus-visible) :is(.method-question-heading,strong){color:var(--home-navy)}
body.visual-system.tools details.method-question>summary:is(:hover,:focus-visible) :is(.method-question-number,.method-question-toggle){color:var(--home-blue)}
body.visual-system.tools details.method-question>summary:focus-visible{outline:3px solid var(--home-blue);outline-offset:3px}
/* Kit geometry only: retain the current grid, type, content and cold palette. */
body.visual-system.resources .resource-product{border:2px solid var(--home-navy);border-radius:0;background:var(--home-card);box-shadow:6px 6px 0 var(--home-navy)}
body.visual-system.resources .product-button{min-height:44px;border:2px solid var(--home-navy);border-radius:0;background:var(--home-teal);color:var(--home-navy);box-shadow:4px 4px 0 var(--home-blue);transition:transform 160ms ease,box-shadow 160ms ease}
body.visual-system.resources .product-button:hover{background:var(--home-teal);color:var(--home-navy);transform:translate(2px,2px);box-shadow:2px 2px 0 var(--home-blue)}
@media(max-width:767px){body.visual-system.resources .resource-product{box-shadow:4px 4px 0 var(--home-navy)}}

/* Access indicators are rendered by the server from its actual protection rule. */
body.visual-system.projects .project-lock{display:inline-flex;width:.65em;height:.65em;margin-left:.35em;flex:0 0 auto;color:var(--home-teal);vertical-align:middle}
