/* V2 presentation depth: shared semantic content, different visual compositions. */
body.ad-theme{
 --story-ink:var(--color-accent);--story-fill:var(--color-bg);--story-soft:var(--color-accent-soft);
 --story-stroke:color-mix(in srgb,var(--color-accent) 38%,var(--color-border));
 --story-shadow:0 14px 34px -27px var(--color-accent);--showcase-radius:var(--p-card-radius,20px)
}
.story-art{display:block;width:100%;height:auto;color:var(--story-ink);overflow:visible}
.story-art .story-plane{fill:var(--story-soft);stroke:var(--story-stroke);stroke-width:1.2}
.story-art .story-panel{fill:var(--story-fill);stroke:var(--story-stroke);stroke-width:1.4}
.story-art .story-core{fill:color-mix(in srgb,var(--story-ink) 23%,var(--story-fill));stroke:var(--story-ink);stroke-width:1.6}
.story-art .story-side{fill:color-mix(in srgb,var(--story-ink) 17%,var(--story-fill));stroke:var(--story-stroke);stroke-width:1.2}
.story-art .story-line{stroke:var(--story-ink);stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.story-art .story-dot{fill:var(--story-ink)}
.ad-theme .ad-visual-main .story-art{width:100%;height:100%;max-height:100%;padding:12px}
.ad-theme .ad-float .story-art{height:auto;width:100%}
.ad-theme .story-visual{background:radial-gradient(ellipse at 68% 25%,var(--color-accent-soft),transparent 75%),var(--color-surface);border:1px solid var(--color-border);aspect-ratio:1.5;min-height:220px;isolation:isolate}
.ad-theme .story-visual>.story-art{width:92%;max-height:100%;padding:12px}
.ad-theme .story-visual .ad-mini-visual{width:28%;bottom:6%;right:5%;padding:3px}
.ad-theme .band-graphic .story-art{padding:10px}
html[data-design=ai-marketing-agency] .ad-theme .v2-hero .story-art,html[data-design=ai-solutions] .ad-theme .v2-hero .story-art{--story-ink:#c4b7ff;--story-fill:#1e2535;--story-soft:#30334b;--story-stroke:#6d7195}
.ad-theme .v2-hero .ad-visual-main{background:radial-gradient(ellipse at 65% 25%,var(--story-soft),transparent 72%),var(--story-fill)}
/* Restore original artwork for neural theme; preserve the prior asset rule. */
html[data-design][data-design=neural-networks] .ad-theme .v2-hero .ad-visual-main{background:transparent url('/ui-v2/themes/assets/neural-core.png') center/contain no-repeat}
html[data-design][data-design=neural-networks] .ad-theme .v2-hero .ad-visual-main .story-art{visibility:hidden}
html:is([data-design=ai-solutions],[data-design=ai-marketing-agency]) .ad-theme .v2-hero .ad-visual-main{background:radial-gradient(ellipse at 50% 50%,#33374f,#151923)}
/* Catalog as an editorial collection, not a repetitive sea of identical cards. */
body.ad-theme #catalog .showcase-group{padding:18px;border:1px solid var(--color-border);border-radius:var(--showcase-radius);background:color-mix(in srgb,var(--v2-paper) 55%,transparent);min-width:0}
body.ad-theme #catalog .showcase-group>h3{display:flex;align-items:center;gap:11px;font-size:17px;font-weight:650;margin-bottom:15px}
body.ad-theme #catalog .showcase-group>h3::before{content:"";width:9px;height:9px;border-radius:3px;flex:none;background:var(--color-accent);box-shadow:0 0 0 5px var(--color-accent-soft)}
body.ad-theme #catalog .showcase-group>h3::after{content:"";height:1px;background:var(--color-border);flex:1}
body.ad-theme #catalog .div-card{min-width:0;gap:11px}
body.ad-theme #catalog .div-card .pattern-wrap{min-height:78px}
body.ad-theme #catalog .div-card .pattern-wrap>svg{max-height:100px}
body.ad-theme #catalog .div-card .arrow{position:absolute;right:15px;bottom:15px;width:30px;height:30px}
body.ad-theme #catalog .div-card .meta{max-width:calc(100% - 32px);margin-top:auto;overflow-wrap:anywhere}
body.ad-theme #catalog .div-card :is(h3,h4){font-size:17px;line-height:1.35}
body.ad-theme #catalog .div-card .summary{font-size:13px;line-height:1.55}
@media(min-width:1000px){
 /* Split family: odd tail fills the row rather than leaving a dead cell. */
 html:is([data-design=app-development],[data-design=smart-solutions],[data-design=web-hosting],[data-design=cyber-security]) body.ad-theme #catalog .showcase-group .grid>li:last-child:nth-child(odd){grid-column:span 2}
 html:is([data-design=app-development],[data-design=smart-solutions],[data-design=web-hosting],[data-design=cyber-security]) body.ad-theme #catalog .showcase-group .grid>li:last-child:nth-child(odd) .pattern-wrap{max-height:115px}
 /* Studio family: editorial bento using same reading order. */
 html:is([data-design=cloud-software],[data-design=ai-agency],[data-design=ai-solutions],[data-design=data-visualization],[data-design=automation-saas],[data-design=payment-solution],[data-design=neural-networks]) body.ad-theme #catalog .showcase-group .grid{grid-template-columns:repeat(6,minmax(0,1fr))}
 html:is([data-design=cloud-software],[data-design=ai-agency],[data-design=ai-solutions],[data-design=data-visualization],[data-design=automation-saas],[data-design=payment-solution],[data-design=neural-networks]) body.ad-theme #catalog .showcase-group .grid>li{grid-column:span 2}
 html:is([data-design=cloud-software],[data-design=ai-agency],[data-design=ai-solutions],[data-design=data-visualization],[data-design=automation-saas],[data-design=payment-solution],[data-design=neural-networks]) body.ad-theme #catalog .showcase-group .grid:has(>li:nth-child(4):last-child)>li{grid-column:span 3}
 html:is([data-design=cloud-software],[data-design=ai-agency],[data-design=ai-solutions],[data-design=data-visualization],[data-design=automation-saas],[data-design=payment-solution],[data-design=neural-networks]) body.ad-theme #catalog .showcase-group .grid:has(>li:nth-child(5):last-child)>li:nth-child(n+4){grid-column:span 3}
}
html[data-design=ai-marketing-agency] body.ad-theme #catalog .showcase-group{background:transparent;border-color:#353a47;padding:16px}
html[data-design=ai-marketing-agency] body.ad-theme #catalog .div-card .pattern-wrap{min-height:64px;max-height:85px}
html[data-design=ai-marketing-agency] body.ad-theme #catalog .div-card .meta{margin-top:0;max-width:100%}
html[data-design=ai-marketing-agency] body.ad-theme #catalog .div-card .arrow{display:none}
/* The process gets an actual visual sequence; numbers are existing CSS counters. */
body.ad-theme #how-it-works .v2-steps.timeline--h{grid-auto-flow:row;grid-auto-columns:auto;gap:14px}
body.ad-theme #how-it-works .v2-steps.timeline--h>li{padding:56px 20px 24px;min-width:0;border:1px solid var(--color-border);border-radius:var(--showcase-radius);background:var(--v2-paper)}
body.ad-theme #how-it-works .v2-steps.timeline--h>li::before{left:20px;top:18px;color:var(--color-accent);font-size:15px}
body.ad-theme #how-it-works .v2-steps.timeline--h>li::after,body.ad-theme #how-it-works .v2-steps.timeline--h>li .ad-progress{left:20px;top:9px;width:calc(100% - 40px);height:3px}
body.ad-theme #how-it-works .v2-steps.timeline--h>li .ad-progress{background:var(--color-accent)}
body.ad-theme #how-it-works .timeline h3{font-size:21px;margin-bottom:9px}
html:is([data-design=ai-agency],[data-design=neural-networks],[data-design=automation-saas]) body.ad-theme #how-it-works .timeline--h>li:nth-child(even){background:color-mix(in srgb,var(--color-accent-soft) 45%,var(--v2-paper))}
html:is([data-design=web-hosting],[data-design=ai-marketing-agency]) body.ad-theme #how-it-works .timeline--h>li{border:0;border-top:1px solid var(--color-border);border-radius:0;background:transparent}
@media(min-width:1000px){body.ad-theme #how-it-works .v2-steps.timeline--h{grid-template-columns:repeat(4,minmax(0,1fr))}}
/* Commitments: two leading cards, then a compact set of four, no content reorder. */
body.ad-theme #commitments .commitment-bento{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
body.ad-theme #commitments .v2-feature{position:relative;overflow:hidden;min-width:0;border:1px solid var(--color-border);background:var(--v2-paper);padding:24px;min-height:0}
body.ad-theme #commitments .v2-feature>.icon{box-sizing:content-box;width:27px;height:27px;padding:10px;border-radius:12px;background:var(--color-accent-soft);color:var(--color-accent);margin-bottom:6px}
body.ad-theme #commitments .v2-feature::after{content:"";position:absolute;right:-45px;top:-45px;width:130px;height:130px;border:1px solid var(--color-border);border-radius:50%;box-shadow:0 0 0 16px var(--color-surface),0 0 0 17px var(--color-border);opacity:.5;pointer-events:none}
body.ad-theme #commitments .v2-feature :is(h3,p){position:relative;z-index:1}
@media(min-width:1100px){body.ad-theme #commitments .commitment-bento{grid-template-columns:repeat(12,minmax(0,1fr))}body.ad-theme #commitments .commitment-bento>li{grid-column:span 3}body.ad-theme #commitments .commitment-bento>li:nth-child(-n+2){grid-column:span 6;padding:30px;background:linear-gradient(135deg,var(--v2-paper),var(--color-surface))}}
html:is([data-design=web-hosting],[data-design=ai-marketing-agency]) body.ad-theme #commitments .v2-feature{border-radius:6px}
html:is([data-design=web-hosting],[data-design=ai-marketing-agency]) body.ad-theme #commitments .v2-feature::after{display:none}
/* Engagement models become compact, explicitly actionable choice tiles. */
body.ad-theme #engagement .engagement-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
body.ad-theme #engagement .engagement-grid>li{min-width:0}
body.ad-theme #engagement .engagement-grid .chip{display:flex;align-items:center;gap:12px;white-space:normal;min-height:84px;padding:16px;border-radius:var(--showcase-radius);width:100%;background:var(--v2-paper);border:1px solid var(--color-border);font-size:14px}
body.ad-theme #engagement .engagement-grid .chip>.icon:first-child{color:var(--color-accent);flex:none}
body.ad-theme #engagement .engagement-grid .chip>.icon:last-child{margin-left:auto;flex:none;opacity:.6}
body.ad-theme #engagement .engagement-grid .chip:hover{border-color:var(--color-accent);background:var(--color-accent-soft)}
body.ad-theme #lab .text-links{display:grid;gap:7px;margin-top:22px}
body.ad-theme #lab .text-links a{display:flex;align-items:center;justify-content:space-between;padding:11px 13px;border:1px solid var(--color-border);border-radius:9px;background:var(--v2-paper);font-size:13px}
body.ad-theme #lab .text-links a::after{content:"↗";color:var(--color-accent);font-size:16px;flex:none;margin-left:10px}
body.ad-theme #partners .panel-soft{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px;align-items:center}
body.ad-theme #partners .panel-soft>.story-visual{grid-column:1/-1;max-height:270px;width:100%}
body.ad-theme #partners .panel-soft>.story-visual>.story-art{height:100%;width:auto;max-width:90%}
body.ad-theme #partners .panel-soft>.story-visual>.ad-mini-visual{width:17%;max-width:140px}
@media(min-width:1100px){body.ad-theme #partners .panel-soft{grid-template-columns:minmax(0,1fr) minmax(0,.95fr) minmax(0,.85fr)}body.ad-theme #partners .panel-soft>.story-visual{grid-column:auto;min-height:0;max-height:none;aspect-ratio:1.1}}
/* Inner pages: the service document becomes a readable structured technical dossier. */
body.ad-theme main .page-header.container{border-bottom:1px solid var(--color-border);margin-bottom:20px}
body.ad-theme main .page-header .ph-graphic{background:radial-gradient(ellipse at 70% 20%,var(--color-accent-soft),transparent 74%),var(--color-surface)}
body.ad-theme main .with-rail .page-header{background:linear-gradient(145deg,var(--v2-paper),var(--color-surface));border:1px solid var(--color-border);border-radius:var(--showcase-radius);padding:clamp(18px,3vw,34px);margin-bottom:28px}
body.ad-theme main .with-rail .page-header .title-row{align-items:flex-start;gap:16px}
body.ad-theme main .with-rail .page-header .title-row h1{margin-top:0;font-size:clamp(1.8rem,3vw,3.1rem)}
body.ad-theme main .with-rail .content-section{border-bottom:1px solid var(--color-border);padding-bottom:28px}
body.ad-theme main .with-rail .content-section>h2{font-size:clamp(1.45rem,2.1vw,2rem);letter-spacing:-.035em}
body.ad-theme main .content-section :is(.check-list,.file-list){gap:10px}
body.ad-theme main .content-section :is(.check-list,.file-list)>li{background:var(--v2-paper);border:1px solid var(--color-border);border-radius:11px;padding:12px;min-width:0;line-height:1.55}
body.ad-theme main .content-section .file-list>li>.icon{flex:none}
body.ad-theme main .content-section .engage-rows>li{background:var(--v2-paper);border-radius:11px}
body.ad-theme main .cat-block{border:1px solid var(--color-border);background:var(--v2-paper);border-radius:var(--showcase-radius);padding:20px}
body.ad-theme main .cat-block>h3{padding-bottom:13px;border-bottom:1px solid var(--color-border)}
body.ad-theme main .cat-block .svc-row:last-child{border-bottom:0;padding-bottom:0}
body.ad-theme main .category-card .card-icon{box-shadow:var(--story-shadow)}
body.ad-theme main .svc-card .card-top .cat{color:var(--color-text-muted);font-weight:550;line-height:1.35}
body.ad-theme main .svc-card .card-icon{width:48px;height:48px;border-radius:12px}
body.ad-theme main .svc-card .actions>.link-arrow{white-space:nowrap}
body.ad-theme main .svc-card .card-models li{line-height:1.4}
body.ad-theme main .hub-controls{box-shadow:none}
body.ad-theme main .hub-drawer .filters fieldset{border-bottom:1px solid var(--color-border);padding-bottom:12px}
body.ad-theme main .hub-drawer .filters fieldset:last-child{border-bottom:0}
@media(max-width:639px){body.ad-theme #catalog .showcase-group{padding:10px}body.ad-theme #catalog .div-card .arrow{right:12px;bottom:12px}body.ad-theme #commitments .commitment-bento,body.ad-theme #engagement .engagement-grid,body.ad-theme #partners .panel-soft{grid-template-columns:minmax(0,1fr)}body.ad-theme #partners .panel-soft>.story-visual{grid-column:auto}body.ad-theme #how-it-works .v2-steps.timeline--h{grid-template-columns:minmax(0,1fr)}body.ad-theme .story-visual{min-height:0}body.ad-theme #engagement .engagement-grid .chip{min-height:64px}body.ad-theme main .with-rail .page-header .title-icon{display:none}}
