/* assets/site-navigation.css */
/* Shared header. Parent links and disclosure buttons are separate controls. */
:root{--rp-header-height:81px;--rp-bar-min:80px;--rp-ink:#191c20;--rp-muted:#65707a;--rp-line:#e0e4e8;--rp-accent:#285cc4}
.rp-header,.rp-header *{box-sizing:border-box}
body .rp-header{position:sticky;top:0;z-index:120;width:100%;background:var(--theme-bg,#fafaf9);border-bottom:1px solid var(--rp-line);font:500 14px/1.5 var(--editorial-font,"Manrope",sans-serif);color:var(--rp-ink);isolation:isolate}
.rp-header-inner{display:flex;align-items:center;justify-content:space-between;width:min(1320px,calc(100% - 96px));min-height:var(--rp-bar-min);margin-inline:auto;gap:clamp(16px,1.5vw,24px)}
.rp-header a{color:inherit;text-decoration:none}
.rp-brand{display:flex;flex:0 0 auto;align-items:center;gap:11px;min-width:0;text-decoration:none;color:var(--rp-ink)}
.rp-brand img{display:block;width:40px;height:40px;flex:0 0 40px;object-fit:contain}
/* Keep the personal mark square without the rounded source-artwork frame. */
.rp-brand img[data-rp-logo]{border-radius:0!important;background:#1b1e22}
html[data-theme="light"] .rp-brand img[data-rp-logo]{filter:none}
html[data-theme="dark"] .rp-brand img[data-rp-logo]{background:#eaedf3;filter:none}
.rp-brand>span{display:block;font-size:14px;font-weight:700;letter-spacing:-.025em;line-height:1.4}
.rp-brand small{display:block;margin-top:3px;font-size:11px;color:var(--rp-muted);font-weight:500;letter-spacing:0}
.rp-navigation{display:flex;align-items:center;justify-content:center;gap:clamp(12px,1.7vw,28px);min-width:0;margin-left:auto}
.rp-nav-group{position:relative}
.rp-nav-trigger{display:flex;align-items:center;gap:0}
.rp-nav-parent,.rp-nav-link{display:inline-flex;align-items:center;min-height:44px;padding:10px 0;white-space:nowrap;font-size:13px;color:var(--rp-muted)!important}
.rp-submenu-toggle{display:none!important}
.rp-nav-parent:hover,.rp-nav-link:hover,.rp-nav-group.is-open .rp-nav-parent,.rp-nav-group.is-current-section .rp-nav-parent{color:var(--rp-ink)!important}
.rp-nav-group.is-current-section:not(.rp-nav-ai) .rp-nav-parent{position:relative}
.rp-nav-group.is-current-section:not(.rp-nav-ai) .rp-nav-parent::after{display:none!important}
.rp-chevron{width:14px;height:14px;flex:0 0 14px;stroke:currentColor;fill:none;stroke-width:1.5;transition:transform .16s ease}
.rp-submenu-toggle[aria-expanded="true"] .rp-chevron,.rp-language[open]>summary>.rp-chevron{transform:rotate(180deg)}
.rp-nav-dropdown,.rp-language-options{position:absolute;top:calc(100% + 10px);min-width:232px;padding:8px;border:1px solid var(--rp-line);border-radius:8px;background:var(--theme-surface,#fff);box-shadow:var(--theme-shadow,0 12px 36px #17233612);z-index:5}
.rp-nav-dropdown{left:-17px;display:none}
.rp-nav-dropdown::before{content:"";position:absolute;bottom:100%;left:0;right:0;height:14px}
.rp-nav-group.is-open>.rp-nav-dropdown{display:block}
.rp-header:not(.rp-enhanced) .rp-nav-group:is(:hover,:focus-within)>.rp-nav-dropdown{display:block}
.rp-nav-dropdown a{display:flex;align-items:center;min-height:43px;padding:10px 12px;border-radius:4px;font-size:13px;line-height:1.45;white-space:normal}
.rp-nav-dropdown a:hover,.rp-nav-dropdown a[aria-current="page"],.rp-language-options a:hover{background:var(--theme-hover,#f0f3f7);color:var(--rp-accent)}
.rp-header-actions{display:flex;flex:0 0 auto;align-items:center;gap:10px}
.rp-language{position:relative;margin:0;padding:0;border:0}
.rp-language>summary{display:flex;align-items:center;height:44px;gap:7px;padding:0 8px;font-size:12px;font-weight:650;list-style:none;cursor:pointer}
.rp-language>summary::-webkit-details-marker{display:none}
.rp-language>summary::marker{content:""}
.rp-language>summary::before,.rp-language>summary::after{display:none}
.rp-globe{width:17px;height:17px;flex:0 0 17px;stroke:currentColor;stroke-width:1.2;fill:none}
.rp-language-options{right:0;min-width:200px}
.rp-language-options a{display:flex;align-items:center;justify-content:space-between;gap:28px;min-height:44px;padding:10px 12px;border-radius:4px;font-size:13px}
.rp-language-options a[aria-current="page"]{background:var(--theme-accent-soft,#edf3fd);color:var(--rp-accent);font-weight:700}
.rp-lang-code{color:var(--rp-muted);font-size:10px;letter-spacing:.06em}
.rp-language-options a[aria-current="page"] .rp-lang-code{color:var(--rp-accent)}
.rp-contact{display:inline-flex;align-items:center;justify-content:space-between;min-height:42px;gap:22px;padding:10px 16px;background:var(--theme-button,#20262d);color:var(--theme-button-text,#fff)!important;font-size:12px}
.rp-contact:hover{background:var(--theme-button-hover,#354252)}
.rp-contact>span{font-size:16px}
.rp-theme-toggle{display:grid;place-items:center;position:relative;flex:0 0 40px;width:40px;height:44px;padding:9px;border:1px solid transparent;border-radius:5px;background:transparent;color:var(--rp-ink);cursor:pointer}
.rp-theme-toggle:hover{background:var(--theme-hover,#f0f3f7);border-color:var(--rp-line)}
.rp-theme-toggle svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;grid-area:1/1}
.rp-theme-toggle .rp-theme-sun{display:none}
html[data-theme="dark"] .rp-theme-toggle .rp-theme-sun{display:block}
html[data-theme="dark"] .rp-theme-toggle .rp-theme-moon{display:none}
.rp-menu-toggle,.rp-menu-backdrop,.rp-mobile-contact{display:none}
.rp-header :is(a,button,summary):focus-visible{outline:2px solid var(--rp-accent)!important;outline-offset:3px!important}
.rp-header [hidden]{display:none!important}
.rp-ai-label{display:inline-flex;align-items:center;justify-content:center;min-width:37px;min-height:29px;padding:3px 9px;border:0;background:var(--theme-accent-soft,#edf2fb);color:var(--rp-accent);font-size:12px;font-weight:750;line-height:1.5;letter-spacing:.025em}
.rp-nav-ai.is-open .rp-ai-label,.rp-nav-ai.is-current-section .rp-ai-label,.rp-nav-ai .rp-nav-parent:hover .rp-ai-label{border-color:var(--rp-accent)}
.rp-ai-dropdown{grid-template-columns:minmax(0,1fr);width:min(410px,calc(100vw - 48px));min-width:0;left:auto;right:-84px;gap:0;padding:16px}
.rp-nav-ai.is-open>.rp-ai-dropdown,.rp-header:not(.rp-enhanced) .rp-nav-ai:is(:hover,:focus-within)>.rp-ai-dropdown{display:grid}
.rp-ai-column{min-width:0;padding:0}
.rp-header .rp-ai-heading{margin:0 0 7px;padding:3px 12px 8px;color:var(--rp-muted);font-size:11px;font-weight:700;line-height:1.5;letter-spacing:.035em;text-transform:none}
.rp-ai-dropdown a{min-width:0;overflow-wrap:anywhere}
.rp-ai-dropdown a:first-of-type{color:var(--rp-ink)}
.rp-ai-dropdown a:hover,.rp-ai-dropdown a[aria-current="page"]{background:var(--theme-accent-soft,#edf2fb);color:var(--rp-accent)}
.rp-ai-dropdown a[aria-current="page"]:not(.rp-ai-projects-button){background:transparent;color:var(--rp-ink)}
.rp-ai-dropdown .rp-ai-projects-button{justify-content:space-between;gap:18px;margin:0 0 10px;padding-inline:15px;background:var(--theme-button,#20262d);color:var(--theme-button-text,#fff)!important;font-weight:700}
.rp-ai-dropdown .rp-ai-projects-button::after{content:"\2197";flex:0 0 auto;font-size:1.2em;font-weight:500;line-height:1}
.rp-ai-dropdown .rp-ai-projects-button:hover,.rp-ai-dropdown .rp-ai-projects-button[aria-current="page"]{background:var(--theme-button-hover,#354252);color:var(--theme-button-text,#fff)!important}
html{scroll-padding-top:calc(var(--rp-header-height) + 16px)}
body.light-theme :is(section[id],.ai-tool-entry[id],.guide-section[id]){scroll-margin-top:0}
.guide-page .guide-progress{z-index:121}
@media(min-width:1081px) and (max-width:1250px){
 .rp-header-inner{width:calc(100% - 96px);gap:18px}.rp-brand small{max-width:180px;font-size:10px}.rp-navigation{gap:16px}.rp-nav-parent,.rp-nav-link{font-size:12px}.rp-header-actions{gap:5px}.rp-contact{gap:14px;padding-inline:12px}
}
@media(min-width:1700px){.rp-header-inner{width:var(--desktop-content)}}
@media(max-width:1080px){
 :root{--rp-header-height:73px;--rp-bar-min:72px}
 .rp-header-inner{position:relative;width:calc(100% - 40px);flex-wrap:nowrap;gap:0 8px;padding-block:10px}
 .rp-brand{margin-right:auto;gap:7px}.rp-brand img{width:34px;height:34px;flex-basis:34px}.rp-brand>span{font-size:12.5px}.rp-brand small{font-size:9.5px;margin-top:2px}
 .rp-header-actions{gap:0;flex-shrink:0}.rp-header-actions>.rp-contact{display:none}.rp-theme-toggle{flex-basis:36px;width:36px;height:40px;padding:7px}.rp-theme-toggle svg{width:19px;height:19px}.rp-language>summary{height:40px;gap:4px;padding-inline:4px;font-size:11px}.rp-globe{width:16px;height:16px;flex-basis:16px}
 .rp-navigation{order:3;display:block;width:100%;margin:12px 0 0;padding:12px 0 20px;border-top:1px solid var(--rp-line)}
 .rp-nav-group{border-bottom:1px solid var(--rp-line)}
 .rp-nav-trigger{width:100%;justify-content:space-between;gap:8px}
 .rp-nav-parent,.rp-nav-link{min-height:56px;padding:14px 0;font-size:17px;font-weight:550;color:var(--rp-ink)!important}
 .rp-nav-parent{flex:1;white-space:normal}.rp-submenu-toggle{width:44px;height:44px;flex:0 0 44px;border:1px solid var(--rp-line);border-radius:4px}
 .rp-nav-group.is-current-section:not(.rp-nav-ai) .rp-nav-parent::after{display:none}.rp-nav-group.is-current-section .rp-nav-parent{color:var(--rp-accent)!important}
 .rp-nav-dropdown{position:static;min-width:0;padding:0 0 12px;border:0;border-radius:0;box-shadow:none;background:transparent}.rp-nav-dropdown::before{display:none}
 .rp-nav-dropdown a{min-height:46px;padding:10px 14px;font-size:14px;color:var(--rp-muted)}
 .rp-nav-link{width:100%;border-bottom:1px solid var(--rp-line)}.rp-mobile-contact{display:flex;color:var(--rp-accent)!important}
 .rp-language-options{top:calc(100% + 12px);right:-2px;width:210px;max-width:calc(100vw - 40px)}
 .rp-header.rp-enhanced .rp-menu-toggle{display:grid;place-items:center;flex:0 0 40px;width:40px;height:40px;margin:0;padding:8px;border:1px solid var(--rp-line);border-radius:6px;background:transparent;color:var(--rp-ink);cursor:pointer}
 .rp-menu-lines{position:relative;display:block;width:18px;height:12px}.rp-menu-lines::before,.rp-menu-lines::after{content:"";position:absolute;left:0;width:18px;height:1.5px;background:currentColor;transition:transform .15s ease}.rp-menu-lines::before{top:2px}.rp-menu-lines::after{bottom:2px}
 .rp-menu-toggle[aria-expanded="true"] .rp-menu-lines::before{top:5px;transform:rotate(45deg)}.rp-menu-toggle[aria-expanded="true"] .rp-menu-lines::after{bottom:5.5px;transform:rotate(-45deg)}
 .rp-header.rp-enhanced .rp-navigation{display:none;position:absolute;top:100%;left:-20px;width:calc(100% + 40px);margin:0;padding:8px 20px max(24px,env(safe-area-inset-bottom));background:var(--theme-bg,#fafaf9);max-height:calc(100vh - var(--rp-header-height));max-height:calc(100dvh - var(--rp-header-height));overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;border-bottom:1px solid var(--rp-line);z-index:3}
 .rp-header.rp-menu-is-open{position:fixed;top:0;left:0;right:0}.rp-header.rp-menu-is-open .rp-navigation{display:block}.rp-header.rp-menu-is-open .rp-menu-backdrop{display:block;position:fixed;inset:var(--rp-header-height) 0 0;z-index:-1;background:#080e1980}.rp-header.rp-menu-is-open .rp-language{z-index:4}
 html.rp-menu-locked,html.rp-menu-locked body{overflow:hidden!important;overscroll-behavior:none}
 .rp-ai-label{min-width:42px;min-height:31px;font-size:14px}.rp-ai-dropdown{grid-template-columns:minmax(0,1fr);width:100%;min-width:0;gap:0;padding:0 0 16px;border:0}.rp-header .rp-ai-heading{padding:3px 14px 4px;margin-bottom:4px;font-size:11px}.rp-ai-dropdown a{min-height:44px}.rp-ai-dropdown .rp-ai-projects-button{margin:4px 0 8px}
}
@media(min-width:1081px){
 .rp-brand{gap:14px}.rp-brand img{width:50px;height:50px;flex-basis:50px}.rp-brand>span{font-size:17.5px}.rp-brand small{margin-top:4px;font-size:13.75px}
 .rp-navigation{gap:clamp(15px,2.1vw,35px)}.rp-nav-parent,.rp-nav-link{min-height:55px;padding:12.5px 0;font-size:16.25px}.rp-submenu-toggle{width:37.5px;height:55px}.rp-chevron{width:17.5px;height:17.5px;flex-basis:17.5px}
 .rp-header-actions{gap:12.5px}.rp-language>summary{height:55px;gap:9px;padding-inline:10px;font-size:15px}.rp-globe{width:21px;height:21px;flex-basis:21px}.rp-theme-toggle{flex-basis:50px;width:50px;height:55px;padding:11px}.rp-theme-toggle svg{width:24px;height:24px}
 .rp-contact{min-height:52.5px;gap:27.5px;padding:12.5px 20px;font-size:15px}.rp-contact>span{font-size:20px}.rp-ai-label{min-width:46px;min-height:36px;padding:4px 11px;font-size:15px}.rp-nav-dropdown,.rp-language-options{min-width:290px;padding:10px}.rp-nav-dropdown a{min-height:54px;padding:12px 15px;font-size:16.25px}.rp-language-options a{min-height:55px;padding:12px 15px;font-size:16.25px}
}
@media(max-width:400px){.rp-header .rp-brand small{font-size:9px}.rp-header-actions{gap:2px}.rp-header .rp-globe{display:none}}
@media(max-width:359px){
 .rp-header-inner{width:calc(100% - 28px);gap:0 6px}.rp-header .rp-brand small{display:none}.rp-header .rp-brand>span{font-size:12px}.rp-header .rp-brand img{width:32px;height:32px;flex-basis:32px}.rp-header .rp-brand{gap:7px}.rp-header-actions{gap:2px}.rp-language>summary{gap:5px;padding-inline:4px}.rp-header.rp-enhanced .rp-navigation{left:-14px;width:calc(100% + 28px);padding-inline:14px}
}
@media(prefers-reduced-motion:reduce){.rp-header *{transition:none!important}}
/* The homepage has a legacy universal “square corners” rule. Shared controls
   deliberately override it so all eighteen headers really are identical. */
body.light-theme .rp-header .rp-ai-label{border-radius:0!important}
body.light-theme .rp-header .rp-theme-toggle{border-radius:5px!important}
body.light-theme .rp-header :is(.rp-nav-dropdown,.rp-language-options){border-radius:8px!important;box-shadow:var(--theme-shadow,0 12px 36px #17233612)!important}
body.light-theme .rp-header :is(.rp-submenu-toggle,.rp-menu-toggle,.rp-nav-dropdown a,.rp-language-options a){border-radius:4px!important}
@media(max-width:1080px){body.light-theme .rp-header .rp-nav-dropdown{border-radius:0!important;box-shadow:none!important}}

@media(max-width:1080px){
 html.rp-has-js .rp-header:not(.rp-enhanced) .rp-navigation{display:none;}
 html.rp-has-js .rp-header:not(.rp-enhanced) .rp-menu-toggle{display:grid;place-items:center;flex:0 0 40px;width:40px;height:40px;margin:0;padding:8px;border:1px solid var(--rp-line);border-radius:6px;background:transparent;color:var(--rp-ink);cursor:pointer;}
}

/* assets/mobile-layout.css */
/* Responsive repairs only. Existing desktop page layouts (981px and up) are left intact. */
@media (max-width: 980px) {
    html { max-width: 100%; overflow-x: hidden; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
    body.light-theme { width: 100%; max-width: 100%; overflow-x: hidden; }
    @supports (overflow: clip) { html, body.light-theme { overflow-x: clip; } }
    body.light-theme :is(main, .portfolio-intro, .portfolio-stack, .portfolio-category, .section-inner, .editorial-wrap, .ai-wrap, .guide-wrap, .guide-shell, .guide-content, .intro-layout, .intro-summary, .contact-panel, .contact-actions, .ai-section-heading, .ai-contact-layout, .ai-tool-body, .guide-section, .prompt-library) { min-width: 0; }
    body.light-theme :is(h1, h2, h3, h4, p, li, strong) { overflow-wrap: anywhere; }
    /* Clipping is local: moving rails cannot enlarge Safari's root scroll area. */
    body.light-theme :is(.reel-showcase, .reel-viewport, .ai-project-viewport, .client-logos) { min-width: 0; max-width: 100%; overflow: hidden; }
    body.light-theme .reel-viewport { contain: inline-size; isolation: isolate; }
    body.light-theme :is(.ai-grid, .ai-project-grid, .guide-table-scroll, .prompt-library-table, .guide-tab-list, .prompt-library-filters) { min-width: 0; max-width: 100%; overscroll-behavior-x: contain; }
    body.light-theme :is(.guide-table-scroll, .prompt-library-table) { -webkit-overflow-scrolling: touch; }
    /* Critical fix: media and captions now occupy real grid rows, not absolute overlays
       followed by a guessed 18.5rem margin. Long translations / larger text grow naturally. */
    body.light-theme :is(#longGrid, #musicGrid) {
        display: grid !important; grid-template-columns: minmax(0, 1fr) !important;
        gap: 36px !important; width: 100% !important; max-width: none !important;
        padding: 0 !important; margin: 0 !important; align-items: start;
    }
    body.light-theme :is(#longGrid, #musicGrid) > :is(.video-card, .external-card).has-project-meta {
        display: grid !important; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto;
        position: relative; width: 100% !important; min-width: 0; max-width: 100%;
        height: auto !important; min-height: 0 !important; aspect-ratio: auto !important;
        margin: 0 !important; padding: 0 !important; overflow: visible !important;
        transform: none !important; isolation: auto; background: transparent !important;
        border: 0 !important; box-shadow: none !important;
    }
    body.light-theme :is(#longGrid, #musicGrid) .video-media-frame,
    body.light-theme :is(#longGrid, #musicGrid) .external-preview {
        position: relative !important; inset: auto !important; grid-column: 1; grid-row: 1;
        display: block; width: 100%; max-width: 100%; aspect-ratio: 16 / 9;
        height: auto !important; min-width: 0; overflow: hidden;
        background: #151b23; border-radius: 4px !important;
        -webkit-mask-image: -webkit-radial-gradient(white, black);
    }
    body.light-theme :is(#longGrid, #musicGrid) .video-media-frame > video,
    body.light-theme :is(#longGrid, #musicGrid) .external-preview > :is(img, video) {
        position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover;
    }
    body.light-theme :is(#longGrid, #musicGrid) .player-overlay {
        position: relative !important; inset: auto !important; grid-column: 1; grid-row: 1;
        align-self: stretch; min-width: 0; width: 100%; height: auto !important; z-index: 3;
        pointer-events: none;
    }
    body.light-theme :is(#longGrid, #musicGrid) .video-card::after { display: none !important; }
    body.light-theme :is(#longGrid, #musicGrid) .music-project-meta {
        position: static !important; inset: auto !important; grid-column: 1; grid-row: 2;
        display: grid; grid-template-columns: minmax(0, 1fr) !important; gap: 8px !important;
        width: 100%; min-width: 0; max-width: 100%; height: auto; margin: 14px 0 0 !important;
        padding: 15px 0 0 !important; border-top: 1px solid #dce1e5; z-index: auto;
        overflow: visible; text-align: left;
    }
    body.light-theme :is(#longGrid, #musicGrid) .music-project-meta > div { min-width: 0; }
    body.light-theme :is(#longGrid, #musicGrid) .music-project-code { font-size: 10px; line-height: 1.4; padding: 0; letter-spacing: .08em; }
    body.light-theme :is(#longGrid, #musicGrid) .music-project-meta h3 { margin: 0; font-size: 19px; line-height: 1.4; letter-spacing: -.025em; text-wrap: pretty; }
    body.light-theme :is(#longGrid, #musicGrid) .music-project-meta p { max-width: none; font-size: 14px; line-height: 1.75; margin: 9px 0 0; }
    body.light-theme :is(#longGrid, #musicGrid) .music-project-meta .music-project-achievement { max-width: 100%; width: fit-content; padding: 6px 8px; font-size: 10px; line-height: 1.5; }
    body.light-theme :is(#longGrid, #musicGrid) .music-project-credits { display: flex; flex-wrap: wrap; gap: 14px 24px; margin-top: 17px; padding-top: 14px; }
    body.light-theme :is(#longGrid, #musicGrid) .music-project-credits li { min-width: 0; max-width: 100%; gap: 4px; }
    body.light-theme :is(#longGrid, #musicGrid) .music-project-credits span { font-size: 9px; line-height: 1.5; }
    body.light-theme :is(#longGrid, #musicGrid) .music-project-credits strong { font-size: 12px; line-height: 1.6; }
    /* Fullscreen must remain a media-only surface. Native iOS fullscreen is handled by the video. */
    body.light-theme :is(#longGrid, #musicGrid) .video-card:fullscreen { width: 100% !important; height: 100% !important; background: #000 !important; }
    body.light-theme :is(#longGrid, #musicGrid) .video-card:fullscreen .music-project-meta { display: none !important; }
    body.light-theme :is(#longGrid, #musicGrid) .video-card:fullscreen .video-media-frame { height: 100% !important; aspect-ratio: auto; }
    body.light-theme :is(#longGrid, #musicGrid) .video-card:fullscreen .work-video { object-fit: contain; }
    /* Existing media controls are too wide for two-column reels. On touch screens the JS
       enables native controls after Play; only the custom central play target is retained. */
    body.light-theme.rp-native-players .video-card .control-bar { display: none !important; }
    body.light-theme.rp-native-players .work-video[controls] { transform: none !important; }
    body.light-theme.rp-native-players .play-center { width: 54px; height: 54px; min-width: 44px; min-height: 44px; }
    body.light-theme.rp-native-players .video-card.is-playing .player-overlay { pointer-events: none; }
    body.light-theme.rp-native-players .video-card .work-video[controls] { pointer-events: auto; }
    body.light-theme .hero-rotating-line { max-width: 100%; white-space: normal; }
    body.light-theme .portfolio-intro h1 { overflow-wrap: normal; }
    body.light-theme :is(.contact-actions, .ai-contact-details) { min-width: 0; width: 100%; }
    body.light-theme :is(.contact-link, .ai-contact-details a) { min-width: 0; max-width: 100%; height: auto; }
    body.light-theme :is(.contact-link strong, .ai-contact-details strong) { min-width: 0; overflow-wrap: anywhere; }
    body.light-theme.ai-page :is(section, .ai-tool-entry) { scroll-margin-top: 0; }
    body.light-theme :is(input, select, textarea) { font-size: max(16px, 1rem); }
    .guide-page .prompt-library-search input { font-size: 16px; }
    .guide-page :is(.guide-callout, .guide-production article, .guide-brief-grid > *, .guide-decision-grid > *, .guide-budget-example > *) { min-width: 0; }
    .guide-page :is(pre, code) { white-space: pre-wrap; overflow-wrap: anywhere; word-break: normal; }
}
@media (max-width: 700px) {
    /* One 20px gutter, stable stacks and readable type instead of miniature desktop columns. */
    body.light-theme :is(.section-inner, .editorial-wrap, .ai-wrap, .guide-wrap) { width: calc(100% - 40px); margin-inline: auto; }
    body.light-theme .portfolio-intro { padding-top: 32px; }
    body.light-theme .intro-layout { grid-template-columns: minmax(0, 1fr); gap: 22px; padding-bottom: 28px; }
    body.light-theme .portfolio-intro h1 { font-size: clamp(33px, 9.7vw, 49px); line-height: 1.12; }
    body.light-theme .intro-kicker { font-size: 9px; line-height: 1.65; margin-bottom: 16px; letter-spacing: .1em; }
    body.light-theme .intro-summary > p { font-size: 14px; line-height: 1.7; }
    body.light-theme :is(.editorial-button, .ai-button, .reels-toggle) { min-height: 46px; }
    body.light-theme .reel-group { align-items: flex-start; }
    body.light-theme .reel-picture { border-radius: 4px !important; }
    body.light-theme .reel-caption { padding-top: 11px; }
    body.light-theme .reel-caption small { font-size: 9px; line-height: 1.5; }
    body.light-theme .reel-caption strong { font-size: 13px; line-height: 1.5; }
    body.light-theme :is(.section-header, .category-top, .split, .contact-panel) { min-width: 0; }
    body.light-theme :is(.category-top, .ai-section-heading, .ai-home-full-catalog .ai-section-heading) { display: grid !important; grid-template-columns: minmax(0, 1fr) !important; gap: 14px !important; }
    body.light-theme .category-note { max-width: 100%; font-size: 13px; line-height: 1.65; text-align: left; }
    body.light-theme :is(#long-form, #music-videos) { margin-inline: 0 !important; padding-inline: 0 !important; width: 100% !important; }
    body.light-theme :is(#long-form, #music-videos) .category-top { margin-bottom: 22px; }
    body.light-theme .portfolio-stack { gap: 48px; }
    body.light-theme :is(.section-copy, .about-copy p, .services-list li span, .process-card > span) { font-size: 14px !important; line-height: 1.75 !important; }
    body.light-theme .about-copy .statement { font-size: 17px !important; line-height: 1.7 !important; }
    body.light-theme .contact-panel { display: grid !important; grid-template-columns: minmax(0, 1fr) !important; gap: 26px !important; padding: 0 !important; }
    body.light-theme #contact h2 { font-size: clamp(29px, 8.8vw, 42px) !important; line-height: 1.12 !important; }
    body.light-theme .contact-link { padding: 18px 16px !important; }
    body.light-theme .contact-link strong { font-size: clamp(15px, 4.1vw, 19px) !important; line-height: 1.5; }
    body.light-theme .footer-inner { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
    /* On touch screens the AI galleries use native horizontal swiping. */
    body.light-theme #ai-reels .ai-project-carousel,
    body.light-theme.ai-page .ai-project-carousel {
        display: block !important;
    }
    body.light-theme #ai-reels .ai-project-viewport,
    body.light-theme.ai-page .ai-project-viewport { width: 100%; }
    body.light-theme #ai-reels .ai-project-carousel-arrow,
    body.light-theme.ai-page .ai-project-arrow {
        display: none !important;
    }
    body.light-theme #ai-reels .ai-grid,
    body.light-theme.ai-page .ai-project-grid {
        overflow-x: auto !important;
        touch-action: pan-x pan-y;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-inline: contain;
        scroll-behavior: smooth;
        scroll-snap-type: x mandatory;
        gap: 14px !important;
        padding-inline: 0 !important;
    }
    body.light-theme #ai-reels .ai-grid .video-card,
    body.light-theme #ai-reels .ai-grid .video-card:nth-child(5),
    body.light-theme #ai-reels .ai-grid .video-card:last-child:nth-child(odd) { flex-basis: 100% !important; }
    body.light-theme.ai-page .ai-project-grid { grid-auto-columns: 100% !important; }
    body.light-theme #ai-reels .ai-grid .video-card,
    body.light-theme.ai-page .ai-project { scroll-snap-stop: always; }
    body.light-theme .ai-hero-description { font-size: 15px; line-height: 1.75; }
    body.light-theme .ai-hero-actions { flex-wrap: wrap; }
    body.light-theme .ai-section-heading > p { margin-left: 0; font-size: 14px; line-height: 1.75; }
    body.light-theme .ai-full-catalog .ai-model-list { grid-template-columns: minmax(0, 1fr) !important; gap: 24px !important; }
    body.light-theme .ai-full-catalog .ai-group-heading { display: block; }
    body.light-theme .ai-full-catalog .ai-tool-entry { display: flex; flex-direction: row; gap: 14px; }
    body.light-theme .ai-tool-body p { font-size: 14px; line-height: 1.75; }
    body.light-theme .ai-filters { flex-wrap: wrap; gap: 6px; }
    body.light-theme .ai-filters button { min-height: 42px; padding: 9px 12px; font-size: 12px; }
    body.light-theme .ai-contact-details strong { font-size: clamp(15px, 4.5vw, 20px); }
    body.light-theme .ai-footer { flex-wrap: wrap; gap: 14px; font-size: 12px; }
    body.light-theme .guide-hero-grid { padding-block: 38px 32px; gap: 28px; }
    body.light-theme .guide-hero h1 { font-size: clamp(37px, 10.5vw, 53px); line-height: 1.12; }
    body.light-theme .guide-lead { font-size: 15px; line-height: 1.75; }
    body.light-theme .guide-section { padding-block: 42px; }
    body.light-theme .guide-section h2 { font-size: clamp(29px, 8.4vw, 40px); line-height: 1.14; }
    body.light-theme :is(.guide-opening, .guide-section-lead, .guide-section > p, .prompt-library-content, .guide-prompt-card pre) { font-size: 14px; line-height: 1.8; }
    body.light-theme .guide-prompt-card header { flex-wrap: wrap; gap: 12px; }
    body.light-theme .guide-prompt-card header button { min-height: 44px; }
    body.light-theme .guide-calculator { margin-inline: 0; padding: 22px 18px; }
    body.light-theme :is(.guide-summary, .guide-callout) { padding: 24px 18px; }
    body.light-theme .guide-summary { margin-inline: 0; }
    body.light-theme .guide-summary-actions a { min-width: 0; width: 100%; font-size: 13px; }
    body.light-theme .prompt-library-reader-header { grid-template-columns: 42px minmax(0, 1fr) 44px; gap: 10px; padding: 18px 12px; }
    body.light-theme .prompt-library-close { min-width: 44px; min-height: 44px; }
}
@media (max-width: 359px) {
    body.light-theme :is(.section-inner, .editorial-wrap, .ai-wrap, .guide-wrap) { width: calc(100% - 28px); }
    body.light-theme .contact-link { padding-inline: 12px !important; }
    body.light-theme .contact-link strong { font-size: 15px !important; }
    body.light-theme :is(#longGrid, #musicGrid) .music-project-meta h3 { font-size: 18px; }
}

/* assets/site-theme.css */
/* Editorial night palette. Only colours are overridden here; no media filters or layout inversion.
   Semantic tokens are shared by navigation, footer and the production timeline. */
:root{
 --theme-bg:#fafaf9;--theme-ink:#191c20;--theme-muted:#65707a;--theme-quiet:#748092;
 --theme-surface:#ffffff;--theme-subtle:#f1f3f5;--theme-surface-soft:#eef2f7;--theme-footer:#f0f2f4;
 --theme-accent:#285cc4;--theme-accent-strong:#285cc4;--theme-accent-soft:#edf2fb;--theme-ai-line:#c5d5ee;
 --theme-line:#dce1e5;--theme-line-strong:#b8c6d7;--theme-hover:#edf1f6;
 --theme-button:#20262d;--theme-button-text:#fff;--theme-button-hover:#354252;
 --theme-shadow:0 14px 42px #15203312;--theme-success:#276345;--theme-warning:#825617;
}
html[data-theme="dark"]{
 color-scheme:dark;background:#101319;
 --theme-bg:#101319;--theme-ink:#edf1f6;--theme-muted:#b0b9c7;--theme-quiet:#97a3b5;
 --theme-surface:#1a202a;--theme-subtle:#151a22;--theme-surface-soft:#172130;--theme-footer:#141922;
 --theme-accent:#91b5fa;--theme-accent-strong:#345fa7;--theme-accent-soft:#1c2b43;--theme-ai-line:#40597e;
 --theme-line:#2e3847;--theme-line-strong:#465771;--theme-hover:#232f40;
 --theme-button:#edf1f6;--theme-button-text:#151a22;--theme-button-hover:#cddcf6;
 --theme-shadow:0 18px 52px #03060e66;--theme-success:#91d1ac;--theme-warning:#e6c28c;
}

/* Colour compatibility: client-carousel.css */
html[data-theme="dark"] .client-list-toggle{border:1px solid var(--theme-line);background:var(--theme-line);color:var(--accent);}
html[data-theme="dark"] .client-list-toggle:hover,html[data-theme="dark"] .client-list-toggle:focus-visible{border-color:var(--theme-line);background:var(--theme-line);}
html[data-theme="dark"][lang="cs"] .language-menu summary::before,html[data-theme="dark"] .language-option[lang="cs"]::before{background-image:url("icons/flags/cs.svg")!important;}
html[data-theme="dark"][lang="fr"] .language-menu summary::before,html[data-theme="dark"] .language-option[lang="fr"]::before{background-image:url("icons/flags/fr.svg")!important;}

/* Colour compatibility: ai-experience.css */
html[data-theme="dark"] .ai-directory,html[data-theme="dark"] .ai-page{--ai-ink:var(--theme-ink);--ai-muted:var(--theme-muted);--ai-cyan:var(--theme-accent);--ai-line:var(--theme-accent);--ai-ground:var(--theme-surface-soft);color:var(--ai-ink);}
html[data-theme="dark"] .ai-eyebrow{color:var(--ai-cyan);}
html[data-theme="dark"] .ai-text-link{color:var(--ai-ink);border-bottom:1px solid var(--ai-cyan);}
html[data-theme="dark"] .ai-text-link > span{color:var(--ai-cyan);}
html[data-theme="dark"] .ai-directory a:focus-visible,html[data-theme="dark"] .ai-page :is(a, button, video):focus-visible{outline:2px solid var(--ai-cyan);}
html[data-theme="dark"] .ai-catalog-group{border-top:1px solid var(--ai-line);}
html[data-theme="dark"] .ai-model-mark{color:var(--ai-ink);}
html[data-theme="dark"] .ai-model-mark:hover{color:var(--ai-cyan);}
html[data-theme="dark"] .ai-page{background:var(--ai-ground);}
html[data-theme="dark"] .ai-page a{color:inherit;}
html[data-theme="dark"] .ai-skip{background:var(--ai-cyan);color:var(--theme-ink)!important;}
html[data-theme="dark"] .ai-topbar{border-bottom:1px solid var(--ai-line);background:var(--theme-surface-soft);}
html[data-theme="dark"] .ai-brand small{color:var(--ai-muted);}
html[data-theme="dark"] .ai-topbar nav a:hover{color:var(--ai-cyan);}
html[data-theme="dark"] .ai-dot{background:var(--ai-cyan);}
html[data-theme="dark"] .ai-hero h1 em{color:var(--ai-cyan);}
html[data-theme="dark"] .ai-hero-description{color:var(--ai-muted);}
html[data-theme="dark"] .ai-button{background:var(--ai-cyan);color:var(--theme-ink)!important;}
html[data-theme="dark"] .ai-button:hover{background:var(--theme-accent-soft);}
html[data-theme="dark"] .ai-visual-label,html[data-theme="dark"] .ai-visual-foot{color:var(--ai-muted);}
html[data-theme="dark"] .ai-visual-foot{border-top:1px solid var(--ai-line);}
html[data-theme="dark"] .ai-section-heading > p{color:var(--ai-muted);}
html[data-theme="dark"] .ai-project-line{border-top:1px solid var(--ai-line);}
html[data-theme="dark"] .ai-project-line > span{color:var(--ai-cyan);}
html[data-theme="dark"] .ai-project-models a:hover{color:var(--ai-cyan);}
html[data-theme="dark"] .ai-project-caption .ai-project-subject{color:var(--ai-ink);}
html[data-theme="dark"] .ai-project-caption p{color:var(--ai-muted);}
html[data-theme="dark"] .ai-service-section{background:var(--theme-surface-soft);border-block:1px solid var(--ai-line);}
html[data-theme="dark"] .ai-service-intro{color:var(--ai-muted);}
html[data-theme="dark"] .ai-offer-list article{border-top:1px solid var(--ai-line);}
html[data-theme="dark"] .ai-offer-list article > span{color:var(--ai-cyan);}
html[data-theme="dark"] .ai-offer-list p{color:var(--ai-muted);}
html[data-theme="dark"] .ai-process li{border-top:1px solid var(--ai-cyan);}
html[data-theme="dark"] .ai-process li > span{color:var(--ai-cyan);}
html[data-theme="dark"] .ai-process p{color:var(--ai-muted);}
html[data-theme="dark"] .ai-guide-promo{border-block:1px solid var(--theme-line);background:var(--theme-bg);color:var(--theme-ink);}
html[data-theme="dark"] .ai-guide-promo-copy > p:not(.ai-eyebrow){color:var(--theme-muted);}
html[data-theme="dark"] .ai-guide-promo-copy ul{border-block:1px solid var(--theme-line);}
html[data-theme="dark"] .ai-guide-promo-copy li{border-right:1px solid var(--theme-line);}
html[data-theme="dark"] .ai-guide-promo-copy li:last-child{border-right:0;}
html[data-theme="dark"] .ai-guide-promo-copy li strong{color:var(--theme-ink);}
html[data-theme="dark"] .ai-guide-promo-copy li span{color:var(--theme-muted);}
html[data-theme="dark"] .ai-guide-promo .ai-button{background:var(--theme-surface-soft);color:var(--theme-ink)!important;}
html[data-theme="dark"] .ai-guide-promo .ai-button:hover{background:var(--theme-accent-strong);}
html[data-theme="dark"] .ai-guide-promo-map::before{background:var(--theme-accent-strong);}
html[data-theme="dark"] .ai-guide-promo-map div{border-left:1px solid var(--theme-accent);background:var(--theme-bg);}
html[data-theme="dark"] .ai-guide-promo-map div:nth-child(even){background:var(--theme-accent-soft);}
html[data-theme="dark"] .ai-guide-promo-map div:first-child{border-left:2px solid var(--theme-accent);}
html[data-theme="dark"] .ai-guide-promo-map span{color:var(--theme-accent);}
html[data-theme="dark"] .ai-guide-promo-map small{color:var(--theme-muted);}
html[data-theme="dark"] .ai-full-catalog{border-top:1px solid var(--ai-line);}
html[data-theme="dark"] .ai-full-catalog h2 > span{color:var(--ai-muted);}
html[data-theme="dark"] .ai-filters button{border:1px solid transparent;background:transparent;color:var(--ai-muted);}
html[data-theme="dark"] .ai-filters button[aria-pressed="true"]{border-color:var(--ai-cyan);background:var(--ai-cyan);color:var(--theme-ink);}
html[data-theme="dark"] .ai-filters button:hover:not([aria-pressed="true"]){border-color:var(--ai-line);color:var(--ai-ink);}
html[data-theme="dark"] .ai-catalog-status{color:var(--ai-muted);}
html[data-theme="dark"] .ai-full-catalog .ai-group-heading p{color:var(--ai-muted);}
html[data-theme="dark"] .ai-tool-entry:target{outline:1px solid var(--ai-cyan);}
html[data-theme="dark"] .ai-tool-use{color:var(--ai-muted);}
html[data-theme="dark"] .ai-tool-body p{color:var(--ai-muted);}
html[data-theme="dark"] .ai-contact-section{background:var(--theme-surface-soft);border-top:1px solid var(--theme-accent);}
html[data-theme="dark"] .ai-contact-layout p:not(.ai-eyebrow){color:var(--theme-muted);}
html[data-theme="dark"] .ai-contact-details a{border-top:1px solid var(--theme-accent);}
html[data-theme="dark"] .ai-contact-details a > span{color:var(--ai-cyan);}
html[data-theme="dark"] .ai-contact-details b{color:var(--ai-cyan);}
html[data-theme="dark"] .ai-footer{color:var(--ai-muted);}
html[data-theme="dark"] .ai-footer a span{color:var(--ai-cyan);}
@media (max-width: 800px){
html[data-theme="dark"] .ai-topbar nav{border-top:1px solid var(--ai-line);}
}
@media (max-width: 520px){
html[data-theme="dark"] .ai-guide-promo-copy li,html[data-theme="dark"] .ai-guide-promo-copy li + li{border-right:0;border-bottom:1px solid var(--theme-line);}
html[data-theme="dark"] .ai-guide-promo-copy li:last-child{border-bottom:0;}
}
html[data-theme="dark"] .ai-project-arrow{border:1px solid var(--theme-accent);background:transparent;color:var(--theme-ink);}
html[data-theme="dark"] .ai-project-arrow:hover:not(:disabled),html[data-theme="dark"] .ai-project-arrow:focus-visible:not(:disabled){border-color:var(--theme-accent);background:var(--theme-accent-strong);color:var(--theme-ink);}
html[data-theme="dark"] .ai-project-topline{border-top:1px solid var(--theme-line);}
html[data-theme="dark"] .ai-project-client,html[data-theme="dark"] .ai-project-format,html[data-theme="dark"] .ai-project-models-label{color:var(--theme-muted);}
html[data-theme="dark"] .ai-project-format{color:var(--theme-muted);}
html[data-theme="dark"] .ai-project-caption h3{color:var(--theme-ink);}
html[data-theme="dark"] .ai-project-description{color:var(--theme-muted);}
html[data-theme="dark"] .ai-project-models{border-top:1px solid var(--theme-line);}
html[data-theme="dark"] .ai-project-models-label{color:var(--theme-muted);}
html[data-theme="dark"] .ai-project-models-label::before{background:var(--theme-accent-strong);}
html[data-theme="dark"] .ai-project-models a{border:0;background:transparent;color:var(--theme-ink);box-shadow:none;}
html[data-theme="dark"] .ai-project-models a::after{border:1px solid var(--theme-accent);background:var(--theme-surface-soft);color:var(--theme-ink);}

/* Colour compatibility: editorial-light.css */
html[data-theme="dark"]{--bg:var(--theme-bg);--bg-soft:var(--theme-bg);--surface:var(--theme-surface);--surface-light:var(--theme-subtle);--text:var(--theme-ink);--muted:var(--theme-muted);--quiet:var(--theme-muted);--line:var(--theme-line-strong);--line-strong:var(--theme-line-strong);--accent:var(--theme-accent);--accent-cool:var(--theme-accent);--accent-soft:var(--theme-accent-soft);--ai-accent:var(--theme-accent);}
html[data-theme="dark"] body.light-theme{background:var(--theme-bg)!important;color:var(--text);}
html[data-theme="dark"] body.light-theme :is(a,button):focus-visible{outline:2px solid var(--theme-accent)!important;}
html[data-theme="dark"] body.light-theme ::selection{background:var(--theme-accent-soft);color:var(--theme-ink);}
html[data-theme="dark"] body.light-theme .section-kicker{color:var(--theme-muted)!important;}
html[data-theme="dark"] body.light-theme .section-copy{color:var(--theme-muted);}
html[data-theme="dark"] body.light-theme .section{background:transparent;}
html[data-theme="dark"] body.light-theme .site-nav{border-bottom:1px solid var(--theme-line)!important;background:var(--theme-bg)!important;box-shadow:none!important;}
html[data-theme="dark"] body.light-theme .site-nav .brand-copy{color:var(--theme-ink);}
html[data-theme="dark"] body.light-theme .site-nav .brand-copy>span{color:var(--theme-muted)!important;}
html[data-theme="dark"] body.light-theme .site-nav .brand-logo-wrap{border:0!important;background:var(--theme-surface-soft)!important;}
html[data-theme="dark"] body.light-theme .nav-links a{color:var(--theme-muted)!important;}
html[data-theme="dark"] body.light-theme .nav-links a:hover,html[data-theme="dark"] body.light-theme .nav-links a.is-active{color:var(--theme-ink)!important;}
html[data-theme="dark"] body.light-theme .nav-links .nav-ai-link{border:0!important;background:var(--theme-accent-soft)!important;color:var(--theme-accent)!important;}
html[data-theme="dark"] body.light-theme .nav-links .nav-ai-link:hover{background:var(--theme-accent-soft)!important;}
html[data-theme="dark"] body.light-theme .language-menu summary{color:var(--theme-ink)!important;border:0!important;}
html[data-theme="dark"] body.light-theme .language-chevron{color:var(--theme-muted)!important;}
html[data-theme="dark"] body.light-theme .language-options{background:var(--theme-surface)!important;border-color:var(--theme-line)!important;box-shadow:0 15px 35px #121a2510;}
html[data-theme="dark"] body.light-theme .language-option{color:var(--theme-ink)!important;}
html[data-theme="dark"] body.light-theme .language-option.is-current,html[data-theme="dark"] body.light-theme .language-option:hover{background:var(--theme-bg)!important;color:var(--theme-ink)!important;border-color:var(--theme-accent)!important;}
html[data-theme="dark"] .intro-kicker{color:var(--theme-ink);}
html[data-theme="dark"] .intro-kicker span{color:var(--theme-muted);}
html[data-theme="dark"] .portfolio-intro h1{color:var(--theme-ink);}
html[data-theme="dark"] .portfolio-intro h1>span{color:var(--theme-muted);}
html[data-theme="dark"] .hero-typing-cursor{background:currentColor;}
html[data-theme="dark"] .intro-summary>p{color:var(--theme-muted);}
html[data-theme="dark"] .editorial-button{background:var(--theme-surface-soft);color:var(--theme-ink)!important;border:1px solid var(--theme-line-strong);}
html[data-theme="dark"] .editorial-button:hover{background:var(--theme-surface-soft);}
html[data-theme="dark"] .reel-section-bar>p{color:var(--theme-ink);}
html[data-theme="dark"] .reel-bar-note{color:var(--theme-muted);}
html[data-theme="dark"] .live-dot{background:var(--theme-accent-strong);}
html[data-theme="dark"] .reel-navigation button{color:var(--theme-ink);background:transparent;border:1px solid transparent;}
html[data-theme="dark"] .reel-navigation button:hover{border-color:var(--theme-line);background:var(--theme-surface);}
html[data-theme="dark"] .reel-card{border:0;background:none;color:var(--theme-ink);}
html[data-theme="dark"] .reel-open{background:var(--theme-bg);color:var(--theme-ink);border:1px solid var(--theme-line);box-shadow:0 3px 16px #00000015;}
html[data-theme="dark"] .reel-caption small{color:var(--theme-muted);}
html[data-theme="dark"] body.light-theme #showreel{background:transparent!important;}
html[data-theme="dark"] body.light-theme .category-top{border-color:var(--theme-line)!important;}
html[data-theme="dark"] body.light-theme .category-note{color:var(--theme-muted);}
html[data-theme="dark"] body.light-theme :is(.video-card,.external-card){border-color:var(--theme-line)!important;box-shadow:none!important;}
html[data-theme="dark"] body.light-theme .reels-toggle{color:var(--theme-ink)!important;border-color:var(--theme-line)!important;background:transparent!important;}
html[data-theme="dark"] body.light-theme .reels-toggle:hover{background:var(--theme-accent-soft)!important;}
html[data-theme="dark"] body.light-theme #musicGrid .music-project-meta,html[data-theme="dark"] body.light-theme #longGrid .music-project-meta{border-color:var(--theme-line);}
html[data-theme="dark"] body.light-theme #musicGrid .music-project-meta h3,html[data-theme="dark"] body.light-theme #longGrid .music-project-meta h3{color:var(--theme-ink);}
html[data-theme="dark"] body.light-theme #musicGrid .music-project-meta p,html[data-theme="dark"] body.light-theme #longGrid .music-project-meta p{color:var(--theme-muted);}
html[data-theme="dark"] body.light-theme #musicGrid .music-project-code,html[data-theme="dark"] body.light-theme #longGrid .music-project-code{color:var(--theme-muted);}
html[data-theme="dark"] body.light-theme #musicGrid .music-project-achievement,html[data-theme="dark"] body.light-theme #longGrid .music-project-achievement{color:var(--theme-accent);background:transparent;border-color:var(--theme-accent);}
html[data-theme="dark"] body.light-theme #musicGrid .music-project-credits,html[data-theme="dark"] body.light-theme #longGrid .music-project-credits{border-color:var(--theme-line);}
html[data-theme="dark"] body.light-theme #musicGrid .music-project-credits span,html[data-theme="dark"] body.light-theme #longGrid .music-project-credits span{color:var(--theme-muted);}
html[data-theme="dark"] body.light-theme #musicGrid .music-project-credits strong,html[data-theme="dark"] body.light-theme #longGrid .music-project-credits strong{color:var(--theme-ink);}
html[data-theme="dark"] body.light-theme #showreel #tech{border-top:1px solid var(--theme-line);border-bottom:1px solid var(--theme-line);}
html[data-theme="dark"] body.light-theme #showreel #tech .section-header{border:0!important;}
html[data-theme="dark"] body.light-theme #showreel #tech h2{color:var(--theme-ink);}
html[data-theme="dark"] body.light-theme #showreel #tech .section-copy{color:var(--theme-muted)!important;}
html[data-theme="dark"] body.light-theme #showreel #tech .tools-group{border:0!important;}
html[data-theme="dark"] body.light-theme #showreel #tech .programs-grid{border-top:1px solid var(--theme-line)!important;border-bottom:1px solid var(--theme-line)!important;}
html[data-theme="dark"] body.light-theme #showreel #tech .programs-grid .tool-item{border:0!important;border-top:2px solid var(--program-accent)!important;border-right:1px solid var(--theme-line)!important;background:var(--theme-surface)!important;box-shadow:none!important;}
html[data-theme="dark"] body.light-theme #showreel #tech .programs-grid .tool-item:last-child{border-right:0!important;}
html[data-theme="dark"] body.light-theme #showreel #tech .programs-grid .tool-item:hover,html[data-theme="dark"] body.light-theme #showreel #tech .programs-grid .tool-item:focus-within{background:var(--theme-bg)!important;}
html[data-theme="dark"] body.light-theme #showreel #tech .programs-grid .tool-icons{border:0!important;background:transparent!important;box-shadow:none!important;}
html[data-theme="dark"] body.light-theme #showreel #tech .programs-grid .tool-icon,html[data-theme="dark"] body.light-theme #showreel #tech .programs-grid .adobe-product-icon{border:0!important;box-shadow:0 8px 22px rgba(39,49,68,.12)!important;}
html[data-theme="dark"] body.light-theme #showreel #tech .programs-grid .tool-tag{border:0!important;border-bottom:1px solid var(--program-accent)!important;background:transparent!important;color:var(--theme-muted)!important;}
html[data-theme="dark"] body.light-theme #showreel #tech .programs-grid .tool-item h3{color:var(--theme-ink)!important;}
html[data-theme="dark"] body.light-theme #showreel #tech .programs-grid .tool-desc{color:var(--theme-muted)!important;}
html[data-theme="dark"] body.light-theme .ai-zone{--ai-accent:var(--theme-accent);}
html[data-theme="dark"] body.light-theme .ai-zone::before{background:var(--ai-dynamic-bg,var(--theme-bg))!important;}
html[data-theme="dark"] body.light-theme .ai-zone-intro{border-color:var(--theme-line)!important;}
html[data-theme="dark"] body.light-theme .ai-zone-kicker{color:var(--theme-accent)!important;}
html[data-theme="dark"] body.light-theme .ai-zone-mark{background:var(--theme-accent-soft)!important;border:0!important;color:var(--theme-accent)!important;}
html[data-theme="dark"] body.light-theme .ai-zone-heading h2{color:var(--theme-ink)!important;}
html[data-theme="dark"] body.light-theme .ai-zone-heading p{color:var(--theme-muted)!important;}
html[data-theme="dark"] body.light-theme #ai-reels{--ai-gallery-line:var(--theme-line);--ai-gallery-ink:var(--theme-ink);--ai-accent:var(--theme-accent);}
html[data-theme="dark"] body.light-theme #ai-reels .ai-gallery-meta{border-color:var(--theme-line);border-left:0;}
html[data-theme="dark"] body.light-theme #ai-reels .ai-gallery-meta p{color:var(--theme-muted);}
html[data-theme="dark"] body.light-theme #ai-reels .ai-gallery-meta span{color:var(--theme-muted);}
html[data-theme="dark"] body.light-theme #ai-reels .ai-grid .video-card{border:0!important;}
html[data-theme="dark"] body.light-theme #main #showreel .portfolio-category .category-top .section-kicker::before,html[data-theme="dark"] body.light-theme #main #showreel #ai-reels .ai-gallery-title .section-kicker::before{background:none!important;}
html[data-theme="dark"] body.light-theme #ai-reels .video-card .video-caption{color:var(--theme-muted)!important;}
html[data-theme="dark"] body.light-theme #ai-reels .caption-link{color:var(--theme-accent)!important;text-decoration-color:var(--theme-accent);}
html[data-theme="dark"] body.light-theme #ai-reels .video-card .model-badges{border-color:var(--theme-line)!important;}
html[data-theme="dark"] body.light-theme #ai-reels .video-card .model-badges::before{border:0!important;color:var(--theme-muted)!important;}
html[data-theme="dark"] body.light-theme #ai-reels .video-card .model-badge{border:1px solid var(--theme-line)!important;color:var(--theme-ink)!important;}
html[data-theme="dark"] body.light-theme .ai-directory,html[data-theme="dark"] body.light-theme.ai-page{--ai-ink:var(--theme-ink);--ai-muted:var(--theme-muted);--ai-cyan:var(--theme-accent);--ai-line:var(--theme-line);--ai-ground:var(--theme-bg);}
html[data-theme="dark"] body.light-theme .ai-directory-heading{border-bottom:1px solid var(--theme-line);}
html[data-theme="dark"] body.light-theme .ai-directory .ai-text-link{border-color:var(--theme-accent);}
html[data-theme="dark"] body.light-theme .ai-directory [data-ai-catalog="compact"] .ai-catalog-group,html[data-theme="dark"] body.light-theme .ai-directory [data-ai-catalog="compact"] .ai-catalog-group:nth-child(n/**/+2):nth-child(-n/**/+4){border-top:0!important;border-bottom:1px solid var(--theme-line);}
html[data-theme="dark"] body.light-theme .ai-directory [data-ai-catalog="compact"] .ai-catalog-group:first-child{border-top:0!important;}
html[data-theme="dark"] body.light-theme .ai-directory [data-ai-catalog="compact"] .ai-group-heading h3{color:var(--theme-ink);}
html[data-theme="dark"] body.light-theme .ai-directory [data-ai-catalog="compact"] .ai-model-mark{color:var(--theme-ink);}
html[data-theme="dark"] body.light-theme .ai-directory [data-ai-catalog="compact"] .ai-model-mark .ai-logo{background:transparent;box-shadow:none;}
html[data-theme="dark"] body.light-theme .ai-directory [data-ai-catalog="compact"] .ai-model-mark>span:last-child{color:var(--theme-ink);}
html[data-theme="dark"] body.light-theme .ai-directory [data-ai-catalog="compact"] .ai-model-mark:hover{color:var(--theme-accent);}
html[data-theme="dark"] body.light-theme #about .about-icon-row,html[data-theme="dark"] body.light-theme #services .section-inner,html[data-theme="dark"] body.light-theme #services .scope-list,html[data-theme="dark"] body.light-theme #services .scope-list li{border-color:var(--theme-line)!important;}
html[data-theme="dark"] body.light-theme #services .section-kicker{color:var(--theme-muted)!important;}
html[data-theme="dark"] body.light-theme #about .about-copy p{color:var(--theme-muted);}
html[data-theme="dark"] body.light-theme #about .about-copy strong{color:var(--theme-ink);}
html[data-theme="dark"] body.light-theme #contact{background:var(--theme-subtle)!important;border-top:1px solid var(--theme-line);}
html[data-theme="dark"] body.light-theme #contact h2{color:var(--theme-ink);}
html[data-theme="dark"] body.light-theme #contact .contact-copy{color:var(--theme-muted);}
html[data-theme="dark"] body.light-theme #contact :is(.contact-link,.contact-card){background:transparent!important;border-color:var(--theme-line)!important;box-shadow:none!important;}
html[data-theme="dark"] body.light-theme #contact .contact-link strong{color:var(--theme-ink);}
html[data-theme="dark"] body.light-theme #contact .contact-link span{color:var(--theme-muted);}
html[data-theme="dark"] body.light-theme #contact .client-logo{background:var(--theme-surface)!important;border-color:var(--theme-line)!important;color:var(--theme-ink)!important;box-shadow:none!important;}
html[data-theme="dark"] body.light-theme #contact .client-logo-name{color:var(--theme-muted)!important;}
html[data-theme="dark"] body.light-theme #contact .clients-title{color:var(--theme-ink)!important;}
html[data-theme="dark"] body.light-theme .client-list-toggle{background:var(--theme-surface)!important;border-color:var(--theme-line)!important;color:var(--theme-ink)!important;}
html[data-theme="dark"] body.light-theme .client-full-list{background:var(--theme-bg)!important;border-color:var(--theme-line)!important;color:var(--theme-ink)!important;}
html[data-theme="dark"] body.light-theme .portfolio-intro .clients--featured{border-top:0!important;border-bottom:0!important;background:transparent!important;}
html[data-theme="dark"] body.light-theme .portfolio-intro .clients--featured::before{background:var(--theme-subtle);}
html[data-theme="dark"] body.light-theme .clients--featured .section-kicker{color:var(--theme-muted)!important;}
html[data-theme="dark"] body.light-theme .clients--featured #clients-title{color:var(--theme-ink)!important;}
html[data-theme="dark"] body.light-theme .clients--featured .client-logos{background:transparent!important;}
html[data-theme="dark"] body.light-theme .clients--featured .client-logo,html[data-theme="dark"] body.light-theme .clients--featured .client-full-list .client-logo{border:0!important;background:transparent!important;box-shadow:none!important;color:var(--theme-ink)!important;}
html[data-theme="dark"] body.light-theme .clients--featured .client-logo:hover,html[data-theme="dark"] body.light-theme .clients--featured .client-logo:focus-visible{background:transparent!important;}
html[data-theme="dark"] body.light-theme .clients--featured .client-logo-name{color:var(--theme-muted)!important;}
html[data-theme="dark"] body.light-theme #contact .clients--secondary{border-top:1px solid var(--theme-line)!important;}
html[data-theme="dark"] body.light-theme #contact .clients--secondary .section-kicker{color:var(--theme-muted)!important;}
html[data-theme="dark"] body.light-theme #contact .clients--secondary h3{color:var(--theme-ink)!important;}
html[data-theme="dark"] body.light-theme #contact .clients--secondary .client-logos{background:transparent!important;}
html[data-theme="dark"] body.light-theme #contact .clients--secondary .client-logo,html[data-theme="dark"] body.light-theme #contact .clients--secondary .client-full-list .client-logo{border:0!important;background:transparent!important;box-shadow:none!important;color:var(--theme-ink)!important;}
html[data-theme="dark"] body.light-theme #contact .clients--secondary .client-logo:hover,html[data-theme="dark"] body.light-theme #contact .clients--secondary .client-logo:focus-visible{background:transparent!important;}
html[data-theme="dark"] body.light-theme #contact .clients--secondary .client-logo-name{color:var(--theme-muted)!important;}
html[data-theme="dark"] body.light-theme #contact .clients--secondary .client-list-toggle{background:transparent!important;border-color:var(--theme-line)!important;color:var(--theme-ink)!important;}
html[data-theme="dark"] body.light-theme #contact .clients--secondary .client-full-list{background:transparent!important;border:0!important;}
html[data-theme="dark"] body.light-theme footer{background:transparent;color:var(--theme-muted);border-color:var(--theme-line);}
html[data-theme="dark"] body.light-theme.ai-page{color:var(--ai-ink);}
html[data-theme="dark"] body.light-theme .ai-topbar{background:var(--theme-bg);border-color:var(--theme-line);}
html[data-theme="dark"] body.light-theme .ai-brand{color:var(--theme-ink);}
html[data-theme="dark"] body.light-theme .ai-brand small{color:var(--theme-muted);}
html[data-theme="dark"] body.light-theme .ai-hero-copy>.ai-eyebrow{color:var(--theme-muted);}
html[data-theme="dark"] body.light-theme .ai-hero h1 em{color:var(--theme-muted);}
html[data-theme="dark"] body.light-theme .ai-button{background:var(--theme-surface-soft);color:var(--theme-ink)!important;}
html[data-theme="dark"] body.light-theme .ai-button:hover{background:var(--theme-accent-strong);}
html[data-theme="dark"] body.light-theme .ai-hero-actions .ai-text-link{border-color:var(--theme-accent);}
html[data-theme="dark"] body.light-theme .ai-service-section{background:var(--theme-bg);}
html[data-theme="dark"] body.light-theme .ai-contact-section{background:var(--theme-accent-soft);border-color:var(--theme-line);}
html[data-theme="dark"] body.light-theme .ai-contact-layout p:not(.ai-eyebrow){color:var(--theme-muted);}
html[data-theme="dark"] body.light-theme .ai-contact-details a{border-color:var(--theme-line);}
html[data-theme="dark"] body.light-theme .ai-project-line{border-color:var(--theme-line);}
html[data-theme="dark"] body.light-theme .ai-project-models-label{color:var(--theme-muted);}
html[data-theme="dark"] body.light-theme .ai-project-models a{border:0;background:transparent;color:var(--theme-ink);box-shadow:none;}
html[data-theme="dark"] body.light-theme .ai-project-models a:hover,html[data-theme="dark"] body.light-theme .ai-project-models a:focus-visible{border:0;background:transparent;color:var(--theme-accent);box-shadow:none;}
html[data-theme="dark"] body.light-theme .ai-tool-entry .ai-logo{background:transparent!important;box-shadow:none!important;}
html[data-theme="dark"] body.light-theme .ai-tool-entry .ai-logo-link{color:inherit;}
html[data-theme="dark"] body.light-theme .ai-tool-entry .ai-logo-link:focus-visible{outline:2px solid var(--theme-accent);}
html[data-theme="dark"] body.light-theme .ai-filters button[aria-pressed=true]{background:var(--theme-surface-soft);border-color:var(--theme-line-strong);color:var(--theme-ink);}
html[data-theme="dark"] .reel-dialog{border:1px solid var(--theme-line);background:var(--theme-bg);color:var(--theme-ink);box-shadow:0 30px 100px #00000030;}
html[data-theme="dark"] .reel-dialog::backdrop{background:var(--theme-surface-soft);}
html[data-theme="dark"] .reel-dialog-heading span{color:var(--theme-muted);}
html[data-theme="dark"] .reel-dialog-close{border:1px solid var(--theme-line);background:var(--theme-surface);color:var(--theme-ink);}
@media (max-width:1000px){
html[data-theme="dark"] body.light-theme #ai-reels .ai-gallery-meta{border-top:0;}
}
@media (max-width:700px){
html[data-theme="dark"] body.light-theme #showreel #tech .programs-grid .tool-item{border-right:0!important;border-bottom:1px solid var(--theme-line)!important;}
html[data-theme="dark"] body.light-theme #showreel #tech .programs-grid .tool-item:last-child{border-bottom:0!important;}
}
html[data-theme="dark"] body.light-theme #showreel #tech .section-kicker{color:var(--theme-accent)!important;}
html[data-theme="dark"] body.light-theme #showreel #tech h2{color:var(--theme-ink)!important;}
html[data-theme="dark"] body.light-theme #showreel #tech .section-copy{color:var(--theme-muted)!important;}
html[data-theme="dark"] body.light-theme #showreel #tech .programs-grid{border:1px solid var(--theme-line)!important;border-top:2px solid var(--theme-accent)!important;background:var(--theme-accent-soft)!important;}
html[data-theme="dark"] body.light-theme #showreel #tech .programs-grid .tool-item{border:0!important;background:var(--theme-surface)!important;color:var(--theme-ink)!important;}
html[data-theme="dark"] body.light-theme #showreel #tech .programs-grid .tool-item:hover,html[data-theme="dark"] body.light-theme #showreel #tech .programs-grid .tool-item:focus-within{background:var(--theme-bg)!important;}
html[data-theme="dark"] body.light-theme #showreel #tech .programs-grid .tool-icons{border:0!important;background:transparent!important;box-shadow:none!important;}
html[data-theme="dark"] body.light-theme #showreel #tech .programs-grid .tool-icon,html[data-theme="dark"] body.light-theme #showreel #tech .programs-grid .adobe-product-icon{border:0!important;box-shadow:none!important;}
html[data-theme="dark"] body.light-theme #showreel #tech .programs-grid .tool-tag{border:0!important;border-bottom:1px solid var(--theme-accent)!important;background:transparent!important;color:var(--theme-muted)!important;}
html[data-theme="dark"] body.light-theme #showreel #tech .programs-grid .tool-item h3{color:var(--theme-ink)!important;}
html[data-theme="dark"] body.light-theme #showreel #tech .programs-grid .tool-desc{color:var(--theme-muted)!important;}
html[data-theme="dark"] body.light-theme .ai-directory [data-ai-catalog="compact"]{border:1px solid var(--theme-line)!important;background:var(--theme-accent-soft)!important;}
html[data-theme="dark"] body.light-theme .ai-directory [data-ai-catalog="compact"] .ai-catalog-group,html[data-theme="dark"] body.light-theme .ai-directory [data-ai-catalog="compact"] .ai-catalog-group:nth-child(n/**/+2):nth-child(-n/**/+4){border:0!important;background:var(--theme-surface)!important;}
html[data-theme="dark"] body.light-theme .ai-directory [data-ai-catalog="compact"] .ai-group-heading{border-bottom:1px solid var(--theme-line)!important;}
html[data-theme="dark"] body.light-theme .ai-directory [data-ai-catalog="compact"] .ai-group-heading h3{color:var(--theme-ink)!important;}
html[data-theme="dark"] body.light-theme .ai-directory [data-ai-catalog="compact"] .ai-model-mark{border:1px solid var(--theme-line)!important;background:var(--theme-bg)!important;color:var(--theme-ink)!important;}
html[data-theme="dark"] body.light-theme .ai-directory [data-ai-catalog="compact"] .ai-model-mark:hover,html[data-theme="dark"] body.light-theme .ai-directory [data-ai-catalog="compact"] .ai-model-mark:focus-visible{border-color:var(--theme-accent)!important;background:var(--theme-bg)!important;color:var(--theme-accent)!important;}
html[data-theme="dark"] body.light-theme .ai-directory [data-ai-catalog="compact"] .ai-model-mark .ai-logo{background:transparent!important;box-shadow:none!important;}
html[data-theme="dark"] body.light-theme .ai-directory [data-ai-catalog="compact"] .ai-model-mark > span:last-child{color:inherit!important;}
html[data-theme="dark"] body.light-theme .ai-directory{background:transparent!important;}
html[data-theme="dark"] body.light-theme .ai-directory .ai-directory-heading{border-bottom:0!important;}
html[data-theme="dark"] body.light-theme .ai-directory [data-ai-catalog="compact"]{border:0!important;background:transparent!important;}
html[data-theme="dark"] body.light-theme .ai-directory [data-ai-catalog="compact"] .ai-catalog-group,html[data-theme="dark"] body.light-theme .ai-directory [data-ai-catalog="compact"] .ai-catalog-group:nth-child(n/**/+2):nth-child(-n/**/+4){border:0!important;border-top:1px solid var(--theme-line)!important;background:transparent!important;}
html[data-theme="dark"] body.light-theme .ai-directory [data-ai-catalog="compact"] .ai-catalog-group:first-child{border-top:0!important;}
html[data-theme="dark"] body.light-theme .ai-directory [data-ai-catalog="compact"] .ai-group-heading{border:0!important;background:transparent!important;}
html[data-theme="dark"] body.light-theme .ai-directory [data-ai-catalog="compact"] .ai-group-heading h3{color:var(--theme-ink)!important;}
html[data-theme="dark"] body.light-theme .ai-directory [data-ai-catalog="compact"] .ai-model-mark{border:0!important;background:transparent!important;color:var(--theme-ink)!important;box-shadow:none!important;}
html[data-theme="dark"] body.light-theme .ai-directory [data-ai-catalog="compact"] .ai-model-mark:hover,html[data-theme="dark"] body.light-theme .ai-directory [data-ai-catalog="compact"] .ai-model-mark:focus-visible{border:0!important;background:transparent!important;color:var(--theme-accent)!important;}
html[data-theme="dark"] body.light-theme .ai-directory [data-ai-catalog="compact"] .ai-model-mark .ai-logo{border:0!important;background:transparent!important;box-shadow:none!important;}
html[data-theme="dark"] body.light-theme .ai-directory [data-ai-catalog="compact"] .ai-model-mark > span:last-child{color:inherit!important;}
html[data-theme="dark"] body.light-theme .ai-home-full-catalog{--ai-ink:var(--theme-ink);--ai-muted:var(--theme-muted);--ai-cyan:var(--theme-accent);--ai-line:var(--theme-line);--ai-ground:var(--theme-bg);color:var(--ai-ink);background:transparent;}
html[data-theme="dark"] body.light-theme .ai-home-full-catalog .ai-section-heading h2{color:var(--theme-ink);}
html[data-theme="dark"] body.light-theme .ai-home-full-catalog .ai-section-heading h2 > span{color:var(--theme-muted);}
html[data-theme="dark"] body.light-theme .ai-home-full-catalog .ai-section-heading > p{color:var(--theme-muted);}
html[data-theme="dark"] body.light-theme .ai-home-full-catalog .ai-filters button{border:1px solid var(--theme-line);background:transparent;color:var(--theme-muted);}
html[data-theme="dark"] body.light-theme .ai-home-full-catalog .ai-filters button[aria-pressed="true"]{border-color:var(--theme-line-strong);background:var(--theme-surface-soft);color:var(--theme-ink);}
html[data-theme="dark"] body.light-theme .ai-home-full-catalog .ai-filters button:hover:not([aria-pressed="true"]){border-color:var(--theme-accent);color:var(--theme-ink);}
html[data-theme="dark"] body.light-theme .ai-home-full-catalog .ai-catalog-group{border-color:var(--theme-line);}
html[data-theme="dark"] body.light-theme .ai-home-full-catalog .ai-group-heading h3{color:var(--theme-ink);}
html[data-theme="dark"] body.light-theme .ai-home-full-catalog .ai-group-heading p{color:var(--theme-muted);}
html[data-theme="dark"] body.light-theme .ai-home-full-catalog .ai-tool-entry .ai-logo{background:transparent;box-shadow:none;}
html[data-theme="dark"] body.light-theme .ai-home-full-catalog .ai-tool-use{color:var(--theme-muted);}
html[data-theme="dark"] body.light-theme .ai-home-full-catalog .ai-tool-body h4{color:var(--theme-ink);}
html[data-theme="dark"] body.light-theme .ai-home-full-catalog .ai-tool-body p{color:var(--theme-muted);}
html[data-theme="dark"] body.light-theme .hero-typing-cursor{background:var(--theme-surface-soft);}
html[data-theme="dark"] body.light-theme:not(.ai-page) #ai-reels .ai-project-carousel-arrow{border:1px solid var(--theme-accent);background:transparent;color:var(--theme-ink);}
html[data-theme="dark"] body.light-theme:not(.ai-page) #ai-reels .ai-project-carousel-arrow:hover,html[data-theme="dark"] body.light-theme:not(.ai-page) #ai-reels .ai-project-carousel-arrow:focus-visible{border-color:var(--theme-accent);background:var(--theme-bg);color:var(--theme-accent);}
html[data-theme="dark"] body.light-theme:not(.ai-page) #ai-reels .ai-project-carousel-arrow:focus-visible{outline:2px solid var(--theme-accent);}
html[data-theme="dark"] body.light-theme:not(.ai-page) #client-reels .reels-more.desktop-preview:not(.is-open)::after{background:linear-gradient(180deg, rgba(250,250,249,0), var(--theme-bg) 62%, var(--theme-bg) 100%);}

/* Colour compatibility: ai-guide.css */
html[data-theme="dark"]{--guide-bg:var(--theme-bg);--guide-paper:var(--theme-ink);--guide-soft:var(--theme-bg);--guide-blue:var(--theme-accent);--guide-blue-dark:var(--theme-accent);--guide-ink:var(--theme-ink);--guide-muted:var(--theme-muted);--guide-line:var(--theme-line);--guide-line-dark:var(--theme-accent);}
html[data-theme="dark"] body.guide-page{background:var(--guide-bg)!important;color:var(--guide-ink);}
html[data-theme="dark"] .guide-page a{color:inherit;}
html[data-theme="dark"] .guide-page button{color:inherit;}
html[data-theme="dark"] .guide-page :is(a, button, input):focus-visible{outline:2px solid var(--guide-blue)!important;}
html[data-theme="dark"] .guide-page ::selection{background:var(--theme-accent-soft);color:var(--theme-ink);}
html[data-theme="dark"] .guide-skip{background:var(--guide-blue);color:var(--theme-ink)!important;}
html[data-theme="dark"] .guide-progress{background:transparent;}
html[data-theme="dark"] .guide-progress span{background:var(--guide-blue);}
html[data-theme="dark"] .guide-topbar{border-bottom:1px solid var(--guide-line);background:var(--theme-bg);}
html[data-theme="dark"] .guide-brand img{background:var(--theme-surface-soft);}
html[data-theme="dark"] .guide-brand small{color:var(--guide-muted);}
html[data-theme="dark"] .guide-topbar nav a,html[data-theme="dark"] .guide-back{color:var(--theme-muted);}
html[data-theme="dark"] .guide-topbar nav a:hover,html[data-theme="dark"] .guide-back:hover{color:var(--guide-blue);}
html[data-theme="dark"] .guide-back{border-bottom:1px solid var(--guide-line-dark);color:var(--guide-ink);}
html[data-theme="dark"] .guide-back span{color:var(--guide-blue);}
html[data-theme="dark"] .guide-hero{border-bottom:1px solid var(--guide-line);background:var(--guide-soft);}
html[data-theme="dark"] .guide-kicker,html[data-theme="dark"] .guide-label{color:var(--guide-blue);}
html[data-theme="dark"] .guide-lead{color:var(--theme-ink);}
html[data-theme="dark"] .guide-route{border-top:1px solid var(--guide-blue);}
html[data-theme="dark"] .guide-route li{border-bottom:1px solid var(--guide-line-dark);}
html[data-theme="dark"] .guide-route a:hover{background:var(--theme-accent-soft);color:var(--guide-blue);}
html[data-theme="dark"] .guide-route-number{color:var(--guide-blue);}
html[data-theme="dark"] .guide-route-copy small{color:var(--guide-muted);}
html[data-theme="dark"] .guide-route-arrow{color:var(--guide-blue);}
html[data-theme="dark"] .guide-toc > p{color:var(--theme-muted);}
html[data-theme="dark"] .guide-toc nav{border-top:1px solid var(--guide-line);}
html[data-theme="dark"] .guide-toc nav a{border-bottom:1px solid var(--guide-line);color:var(--theme-muted);}
html[data-theme="dark"] .guide-toc nav a:hover,html[data-theme="dark"] .guide-toc nav a.is-active{color:var(--guide-blue);}
html[data-theme="dark"] .guide-toc nav a.is-active{border-bottom-color:var(--guide-blue);}
html[data-theme="dark"] .guide-toc-cta{border-bottom:1px solid var(--guide-blue);color:var(--guide-blue)!important;}
html[data-theme="dark"] .guide-section{border-bottom:1px solid var(--guide-line);}
html[data-theme="dark"] .guide-opening,html[data-theme="dark"] .guide-section-lead{color:var(--guide-muted);}
html[data-theme="dark"] .guide-definitions{border-top:1px solid var(--guide-line-dark);}
html[data-theme="dark"] .guide-definitions article{border-bottom:1px solid var(--guide-line);}
html[data-theme="dark"] .guide-definitions article:nth-child(odd){border-right:1px solid var(--guide-line);}
html[data-theme="dark"] .guide-definitions article > span,html[data-theme="dark"] .guide-decision-grid article > span,html[data-theme="dark"] .guide-production article > div > span{color:var(--guide-blue);}
html[data-theme="dark"] .guide-definitions p{color:var(--guide-muted);}
html[data-theme="dark"] .guide-note{border-block:1px solid var(--guide-blue);}
html[data-theme="dark"] .guide-note strong{color:var(--guide-blue);}
html[data-theme="dark"] .guide-check-list{border-top:1px solid var(--guide-line-dark);}
html[data-theme="dark"] .guide-check-list li{border-bottom:1px solid var(--guide-line);}
html[data-theme="dark"] .guide-check-list span{color:var(--guide-blue);}
html[data-theme="dark"] .guide-callout{background:var(--guide-blue);color:var(--theme-ink);}
html[data-theme="dark"] .guide-callout > p{color:var(--theme-accent);}
html[data-theme="dark"] .guide-callout dl div{border-top:1px solid var(--theme-line);}
html[data-theme="dark"] .guide-callout dt{color:var(--theme-accent);}
html[data-theme="dark"] .guide-table-block{border-top:1px solid var(--guide-line-dark);}
html[data-theme="dark"] .guide-table-heading p,html[data-theme="dark"] .guide-cost-toolbar p{color:var(--guide-blue);}
html[data-theme="dark"] .guide-table-heading > span{color:var(--guide-muted);}
html[data-theme="dark"] .guide-page th{border-block:1px solid var(--guide-line-dark);background:var(--theme-bg);color:var(--theme-muted);}
html[data-theme="dark"] .guide-page td{border-bottom:1px solid var(--guide-line);}
html[data-theme="dark"] .guide-page tbody tr:hover{background:var(--theme-bg);}
html[data-theme="dark"] .guide-table-note{color:var(--guide-muted);}
html[data-theme="dark"] .guide-tab-list{border-bottom:1px solid var(--guide-line-dark);}
html[data-theme="dark"] .guide-tab-list button{border:0;border-bottom:3px solid transparent;background:transparent;color:var(--theme-muted);}
html[data-theme="dark"] .guide-tab-list button[aria-selected="true"]{border-color:var(--guide-blue);color:var(--guide-blue);}
html[data-theme="dark"] .guide-tab-mark{border:1px solid var(--guide-blue);color:var(--guide-blue);}
html[data-theme="dark"] .guide-tab-panel p{color:var(--guide-muted);}
html[data-theme="dark"] .guide-tab-panel ul{color:var(--guide-blue);}
html[data-theme="dark"] .case-film{background:var(--theme-surface-soft);color:var(--theme-ink);}
html[data-theme="dark"] .case-film-frame{background:var(--theme-surface-soft);}
html[data-theme="dark"] .case-film figcaption span,html[data-theme="dark"] .case-overview-label,html[data-theme="dark"] .case-subheading > p{color:var(--theme-accent);}
html[data-theme="dark"] .case-film figcaption small{color:var(--theme-accent);}
html[data-theme="dark"] .case-overview-label{color:var(--guide-blue);}
html[data-theme="dark"] .case-toolchain{background:var(--guide-line);}
html[data-theme="dark"] .case-tool{background:var(--guide-paper);}
html[data-theme="dark"] .case-tool > img{background:var(--theme-surface);}
html[data-theme="dark"] .case-tool--brand > img{background:var(--theme-surface-soft);}
html[data-theme="dark"] .case-tool small{color:var(--guide-muted);}
html[data-theme="dark"] .case-tool strong{color:var(--guide-ink);}
html[data-theme="dark"] .case-facts{border-top:1px solid var(--guide-line-dark);}
html[data-theme="dark"] .case-facts div{border-bottom:1px solid var(--guide-line);}
html[data-theme="dark"] .case-facts div:nth-child(odd){border-right:1px solid var(--guide-line);}
html[data-theme="dark"] .case-facts dt{color:var(--guide-blue);}
html[data-theme="dark"] .case-facts dd{color:var(--theme-ink);}
html[data-theme="dark"] .case-overview-copy{color:var(--guide-muted);}
html[data-theme="dark"] .case-subheading{border-bottom:1px solid var(--guide-line-dark);}
html[data-theme="dark"] .case-subheading > p{color:var(--guide-blue);}
html[data-theme="dark"] .case-pipeline-list{background:var(--guide-line);}
html[data-theme="dark"] .case-pipeline-list li{background:var(--guide-paper);}
html[data-theme="dark"] .case-pipeline-list li:not(:last-child)::after{background:var(--guide-bg);color:var(--guide-blue);}
html[data-theme="dark"] .case-step-number{color:var(--guide-blue);}
html[data-theme="dark"] .case-pipeline-list img,html[data-theme="dark"] .case-step-icon{background:var(--theme-bg);}
html[data-theme="dark"] .case-step-file{border:1px solid var(--guide-blue);background:transparent;color:var(--guide-blue);}
html[data-theme="dark"] .case-pipeline-list p{color:var(--guide-muted);}
html[data-theme="dark"] .case-motion-grid{background:var(--guide-line);}
html[data-theme="dark"] .case-motion-grid article{background:var(--guide-paper);}
html[data-theme="dark"] .case-motion-grid span{color:var(--guide-blue);}
html[data-theme="dark"] .case-motion-grid p{color:var(--guide-muted);}
html[data-theme="dark"] .case-timing-track{border:1px solid var(--guide-line-dark);}
html[data-theme="dark"] .case-timing-track > div{border-right:1px solid var(--guide-line-dark);}
html[data-theme="dark"] .case-timing-track > div:last-child{border-right:0;}
html[data-theme="dark"] .case-timing-cut{background:repeating-linear-gradient(135deg, var(--theme-subtle), var(--theme-subtle) 8px, var(--theme-subtle) 8px, var(--theme-subtle) 16px);color:var(--theme-muted);}
html[data-theme="dark"] .case-timing-use{background:var(--guide-blue);color:var(--theme-ink);}
html[data-theme="dark"] .case-speed-result{border:solid var(--guide-line-dark);color:var(--theme-ink);}
html[data-theme="dark"] .case-speed-result b{color:var(--guide-blue);}
html[data-theme="dark"] .case-speed-result strong{color:var(--guide-blue-dark);}
html[data-theme="dark"] .case-caption{color:var(--guide-muted);}
html[data-theme="dark"] .case-lessons{border-top:1px solid var(--guide-line-dark);}
html[data-theme="dark"] .case-lessons details{border-bottom:1px solid var(--guide-line-dark);}
html[data-theme="dark"] .case-lessons summary::after{color:var(--guide-blue);}
html[data-theme="dark"] .case-lessons summary span{color:var(--guide-blue);}
html[data-theme="dark"] .case-lessons summary small{color:var(--guide-muted);}
html[data-theme="dark"] .case-lessons details > div{color:var(--guide-muted);}
html[data-theme="dark"] .prompt-library-stats{border-top:1px solid var(--guide-blue);}
html[data-theme="dark"] .prompt-library-stats div{border-bottom:1px solid var(--guide-line-dark);}
html[data-theme="dark"] .prompt-library-stats div + div{border-left:1px solid var(--guide-line);}
html[data-theme="dark"] .prompt-library-stats dt{color:var(--guide-blue);}
html[data-theme="dark"] .prompt-library-stats dd{color:var(--guide-muted);}
html[data-theme="dark"] .prompt-library-principles{background:var(--guide-line);}
html[data-theme="dark"] .prompt-library-principles article{background:var(--theme-bg);}
html[data-theme="dark"] .prompt-library-principles span{color:var(--guide-blue);}
html[data-theme="dark"] .prompt-library-principles p{color:var(--guide-muted);}
html[data-theme="dark"] .prompt-library{border-top:1px solid var(--guide-line-dark);}
html[data-theme="dark"] .prompt-library-search span{color:var(--guide-muted);}
html[data-theme="dark"] .prompt-library-search input{border:0;border-bottom:1px solid var(--guide-line-dark);background:transparent;color:var(--guide-ink);outline:0;}
html[data-theme="dark"] .prompt-library-search input:focus{border-color:var(--guide-blue);}
html[data-theme="dark"] .prompt-library-filters button{border:1px solid var(--guide-line-dark);background:transparent;color:var(--guide-muted);}
html[data-theme="dark"] .prompt-library-filters button:hover,html[data-theme="dark"] .prompt-library-filters button[aria-pressed="true"]{border-color:var(--guide-blue);background:var(--guide-blue);color:var(--theme-ink);}
html[data-theme="dark"] .prompt-library-layout{border:1px solid var(--guide-line-dark);background:var(--theme-surface);}
html[data-theme="dark"] .prompt-library-index{border-right:1px solid var(--guide-line-dark);}
html[data-theme="dark"] .prompt-library-index-item{border:0;border-bottom:1px solid var(--guide-line);background:var(--theme-surface);color:var(--guide-ink);}
html[data-theme="dark"] .prompt-library-index-item:hover{background:var(--theme-bg);}
html[data-theme="dark"] .prompt-library-index-item.is-active{background:var(--theme-accent-soft);box-shadow:inset 3px 0 0 var(--guide-blue);}
html[data-theme="dark"] .prompt-library-index-item small{color:var(--guide-blue);}
html[data-theme="dark"] .prompt-library-index-item b{color:var(--theme-muted);}
html[data-theme="dark"] .prompt-library-index-brand{background:var(--theme-bg);}
html[data-theme="dark"] .prompt-library-reader{background:var(--theme-surface);}
html[data-theme="dark"] .prompt-library-reader-header{border-bottom:1px solid var(--guide-line-dark);background:var(--theme-bg);}
html[data-theme="dark"] .prompt-library-reader-header p{color:var(--guide-blue);}
html[data-theme="dark"] .prompt-library-brand{background:var(--theme-surface);}
html[data-theme="dark"] .prompt-library-wordmark{background:var(--theme-surface-soft);color:var(--theme-ink);}
html[data-theme="dark"] .prompt-library-brand[data-brand="wan"] .prompt-library-wordmark{background:var(--theme-accent-strong);}
html[data-theme="dark"] .prompt-library-close{border:1px solid var(--guide-line-dark);background:transparent;color:var(--guide-blue);}
html[data-theme="dark"] .prompt-library-content{color:var(--theme-ink);}
html[data-theme="dark"] .prompt-library-content h4{color:var(--guide-ink);}
html[data-theme="dark"] .prompt-library-content h5{color:var(--guide-ink);}
html[data-theme="dark"] .prompt-library-content a{color:var(--guide-blue);}
html[data-theme="dark"] .prompt-library-content code:not(pre code){background:var(--theme-bg);color:var(--theme-accent);}
html[data-theme="dark"] .prompt-library-content blockquote{border-left:3px solid var(--guide-blue);background:var(--theme-bg);color:var(--theme-accent);}
html[data-theme="dark"] .prompt-library-code{border:1px solid var(--theme-line-strong);background:var(--theme-surface-soft);color:var(--theme-ink);}
html[data-theme="dark"] .prompt-library-code > div{border-bottom:1px solid var(--theme-line);}
html[data-theme="dark"] .prompt-library-code > div span{color:var(--theme-accent);}
html[data-theme="dark"] .prompt-library-code button{border:1px solid var(--theme-line);background:transparent;color:var(--theme-ink);}
html[data-theme="dark"] .prompt-library-code button:hover{border-color:var(--theme-accent);color:var(--theme-accent);}
html[data-theme="dark"] .prompt-library-table{border-top:1px solid var(--guide-line-dark);}
html[data-theme="dark"] .prompt-library-table-date{border-bottom:1px solid var(--guide-line);color:var(--guide-muted);}
html[data-theme="dark"] .prompt-library-table-date span::after{color:var(--guide-line-dark);}
html[data-theme="dark"] .prompt-library-table-date strong{color:var(--guide-ink);}
html[data-theme="dark"] .prompt-library-table th,html[data-theme="dark"] .prompt-library-table td{border-bottom:1px solid var(--guide-line);}
html[data-theme="dark"] .prompt-library-table th{color:var(--guide-blue);}
html[data-theme="dark"] .prompt-library-loading,html[data-theme="dark"] .prompt-library-empty,html[data-theme="dark"] .prompt-library-error{color:var(--guide-muted);}
html[data-theme="dark"] .prompt-library-footer{border-bottom:1px solid var(--guide-line-dark);}
html[data-theme="dark"] .prompt-library-footer p{color:var(--guide-muted);}
html[data-theme="dark"] .prompt-library-footer a{border-bottom:1px solid var(--guide-blue);color:var(--guide-blue);}
html[data-theme="dark"] .guide-wordmark{background:var(--theme-surface-soft);color:var(--theme-ink);}
html[data-theme="dark"] .guide-wordmark-runway{background:var(--theme-surface-soft);color:var(--theme-ink);}
html[data-theme="dark"] .guide-wordmark-magnific{background:var(--theme-accent-soft);color:var(--theme-accent);}
html[data-theme="dark"] .guide-wordmark-artlist{background:var(--theme-surface-soft);color:var(--theme-ink);}
html[data-theme="dark"] .guide-wordmark-openart{background:var(--theme-accent-soft);color:var(--theme-accent);}
html[data-theme="dark"] .guide-wordmark-firefly{background:var(--theme-surface-soft);color:var(--theme-muted);}
html[data-theme="dark"] .guide-decision-grid article{border-top:1px solid var(--guide-blue);background:var(--theme-bg);}
html[data-theme="dark"] .guide-decision-grid p{color:var(--guide-muted);}
html[data-theme="dark"] .guide-table-date{color:var(--guide-muted);}
html[data-theme="dark"] .guide-table-date span::after{color:var(--guide-line-dark);}
html[data-theme="dark"] .guide-table-date strong{color:var(--guide-ink);}
html[data-theme="dark"] .guide-best-value td{background:var(--theme-accent-soft)!important;}
html[data-theme="dark"] .guide-best-value td:first-child{box-shadow:inset 3px 0 0 var(--guide-blue);}
html[data-theme="dark"] .guide-value-badge{background:var(--guide-blue);color:var(--theme-ink)!important;}
html[data-theme="dark"] .guide-value-callout{border-left:3px solid var(--guide-blue);background:var(--theme-accent-soft);}
html[data-theme="dark"] .guide-value-callout span{color:var(--guide-blue);}
html[data-theme="dark"] .guide-value-callout p{color:var(--guide-muted);}
html[data-theme="dark"] .h3-local{border-top:1px solid var(--guide-blue);}
html[data-theme="dark"] .h3-local-grid{background:var(--guide-line);}
html[data-theme="dark"] .h3-local-grid article,html[data-theme="dark"] .h3-local-grid aside{background:var(--theme-surface);}
html[data-theme="dark"] .h3-local-grid aside{background:var(--theme-surface-soft);color:var(--theme-ink);}
html[data-theme="dark"] .h3-local-grid span{color:var(--guide-blue);}
html[data-theme="dark"] .h3-local-grid aside span{color:var(--theme-accent);}
html[data-theme="dark"] .h3-local-grid p{color:var(--guide-muted);}
html[data-theme="dark"] .h3-local-grid aside p{color:var(--theme-muted);}
html[data-theme="dark"] .guide-prompt-formula{background:var(--guide-line);}
html[data-theme="dark"] .guide-prompt-formula li{background:var(--guide-paper);}
html[data-theme="dark"] .guide-prompt-formula span{color:var(--guide-blue);}
html[data-theme="dark"] .guide-prompt-formula small{color:var(--guide-muted);}
html[data-theme="dark"] .guide-prompt-card{border:1px solid var(--guide-line-dark);background:var(--theme-surface);}
html[data-theme="dark"] .guide-prompt-card header{border-bottom:1px solid var(--guide-line);}
html[data-theme="dark"] .guide-prompt-card header span{color:var(--guide-blue);}
html[data-theme="dark"] .guide-prompt-card button{border:1px solid var(--guide-line-dark);background:transparent;color:var(--guide-blue);}
html[data-theme="dark"] .guide-prompt-card button:hover{background:var(--guide-soft);}
html[data-theme="dark"] .guide-prompt-card button.is-copied{border-color:var(--guide-blue);background:var(--guide-blue);color:var(--theme-ink);}
html[data-theme="dark"] .guide-prompt-card pre{color:var(--theme-ink);}
html[data-theme="dark"] .guide-prompt-negative{background:var(--theme-bg);}
html[data-theme="dark"] .guide-production{border-top:1px solid var(--guide-line-dark);}
html[data-theme="dark"] .guide-production article{border-bottom:1px solid var(--guide-line);}
html[data-theme="dark"] .guide-production-number{color:var(--theme-muted);}
html[data-theme="dark"] .guide-production p{color:var(--guide-muted);}
html[data-theme="dark"] .guide-production li{border-top:1px solid var(--guide-line);}
html[data-theme="dark"] .guide-platform-index{background:var(--guide-line);}
html[data-theme="dark"] .guide-platform-index a{background:var(--theme-surface);}
html[data-theme="dark"] .guide-platform-index a:hover{background:var(--theme-bg);color:var(--guide-blue);}
html[data-theme="dark"] .guide-platform-index small{color:var(--guide-muted);}
html[data-theme="dark"] .guide-duration-filters{border:1px solid var(--guide-line-dark);}
html[data-theme="dark"] .guide-duration-filters button{border:0;border-left:1px solid var(--guide-line);background:var(--theme-surface);color:var(--guide-muted);}
html[data-theme="dark"] .guide-duration-filters button:first-child{border-left:0;}
html[data-theme="dark"] .guide-duration-filters button[aria-pressed="true"]{background:var(--guide-blue);color:var(--theme-ink);}
html[data-theme="dark"] .guide-provider-tables{border-top:1px solid var(--guide-line-dark);}
html[data-theme="dark"] .guide-provider-tables details{border-bottom:1px solid var(--guide-line-dark);}
html[data-theme="dark"] .guide-provider-tables summary::after{color:var(--guide-blue);}
html[data-theme="dark"] .guide-provider-tables summary small{color:var(--guide-muted);}
html[data-theme="dark"] .guide-detail-copy{color:var(--guide-muted);}
html[data-theme="dark"] .guide-budget-example{border:1px solid var(--guide-blue);background:var(--guide-soft);}
html[data-theme="dark"] .guide-budget-example > div > p{color:var(--guide-blue);}
html[data-theme="dark"] .guide-budget-example > div > span{color:var(--guide-muted);}
html[data-theme="dark"] .guide-budget-numbers p{border-left:1px solid var(--guide-blue);}
html[data-theme="dark"] .guide-budget-numbers span{color:var(--guide-blue);}
html[data-theme="dark"] .guide-budget-numbers small{color:var(--guide-muted);}
html[data-theme="dark"] .guide-troubleshooting{background:var(--guide-line);}
html[data-theme="dark"] .guide-troubleshooting article{background:var(--guide-paper);}
html[data-theme="dark"] .guide-troubleshooting p{color:var(--guide-muted);}
html[data-theme="dark"] .guide-publish-check{border-block:1px solid var(--guide-blue);}
html[data-theme="dark"] .guide-publish-check > div:first-child > p{color:var(--guide-blue);}
html[data-theme="dark"] .guide-publish-check > div:first-child span{color:var(--guide-muted);}
html[data-theme="dark"] .guide-check-options label{border-bottom:1px solid var(--guide-line);color:var(--theme-ink);}
html[data-theme="dark"] .guide-summary{border:0;background:var(--theme-surface-soft);color:var(--theme-ink);}
html[data-theme="dark"] .guide-summary .guide-label{color:var(--theme-accent);}
html[data-theme="dark"] .guide-summary > p:not(.guide-label){color:var(--theme-accent);}
html[data-theme="dark"] .guide-summary-actions a{border:1px solid var(--theme-line);color:var(--theme-ink);}
html[data-theme="dark"] .guide-summary-actions a:first-child{border-color:var(--theme-accent);background:var(--theme-accent-strong);color:var(--theme-ink);}
html[data-theme="dark"] .guide-sources > p{color:var(--guide-muted);}
html[data-theme="dark"] .guide-sources li{border-bottom:1px solid var(--guide-line);color:var(--theme-muted);}
html[data-theme="dark"] .guide-sources a{color:var(--theme-ink);}
html[data-theme="dark"] .guide-sources a:hover{color:var(--guide-blue);}
html[data-theme="dark"] .guide-footer{border-top:1px solid var(--guide-line);background:var(--theme-surface);}
html[data-theme="dark"] .guide-footer > div{color:var(--guide-muted);}
html[data-theme="dark"] .guide-footer a:hover{color:var(--guide-blue);}
@media (max-width: 1080px){
html[data-theme="dark"] .guide-route li{border-right:1px solid var(--guide-line-dark);}
html[data-theme="dark"] .guide-route li:last-child{border-right:0;}
}
@media (max-width: 760px){
html[data-theme="dark"] .guide-hero{background:var(--guide-soft);}
html[data-theme="dark"] .guide-route li{border-right:0;}
html[data-theme="dark"] .guide-definitions article:nth-child(odd){border-right:0;}
html[data-theme="dark"] .case-timing-track > div{border-right:0;border-bottom:1px solid var(--guide-line-dark);}
html[data-theme="dark"] .case-timing-track > div:last-child{border-bottom:0;}
html[data-theme="dark"] .prompt-library-stats div + div{border-left:0;}
html[data-theme="dark"] .prompt-library-layout{border-inline:0;}
html[data-theme="dark"] .prompt-library-index{border-right:0;}
html[data-theme="dark"] .prompt-library-code{border-inline:0;}
}
@media (max-width: 420px){
html[data-theme="dark"] .case-facts div:nth-child(odd){border-right:0;}
}

/* Explicit art-direction decisions override the legacy colours above. */
html[data-theme="dark"]{
 --bg:var(--theme-bg);--bg-soft:var(--theme-subtle);--surface:var(--theme-surface);--surface-light:var(--theme-surface-soft);
 --text:var(--theme-ink);--muted:var(--theme-muted);--quiet:var(--theme-quiet);--line:var(--theme-line);--line-strong:var(--theme-line-strong);
 --accent:var(--theme-ink);--accent-cool:var(--theme-accent);--accent-soft:var(--theme-accent-soft);--ai-accent:var(--theme-accent);
 --rp-ink:var(--theme-ink);--rp-muted:var(--theme-muted);--rp-line:var(--theme-line);--rp-accent:var(--theme-accent);
 --guide-bg:var(--theme-bg);--guide-paper:var(--theme-surface);--guide-soft:var(--theme-accent-soft);--guide-blue:var(--theme-accent);--guide-blue-dark:var(--theme-accent);
 --guide-ink:var(--theme-ink);--guide-muted:var(--theme-muted);--guide-line:var(--theme-line);--guide-line-dark:var(--theme-line-strong);
 --ai-ground:var(--theme-bg);--ai-ink:var(--theme-ink);--ai-muted:var(--theme-muted);--ai-cyan:var(--theme-accent);--ai-line:var(--theme-line);
}
html[data-theme="dark"] body.light-theme{background:var(--theme-bg)!important;color:var(--theme-ink)}
html[data-theme="dark"] body.light-theme :is(.ai-directory,.ai-zone),html[data-theme="dark"] body.light-theme.ai-page{
 --ai-ink:var(--theme-ink);--ai-muted:var(--theme-muted);--ai-cyan:var(--theme-accent);--ai-line:var(--theme-line);--ai-ground:var(--theme-bg);--ai-accent:var(--theme-accent);
}
html[data-theme="dark"] body.light-theme .ai-zone::before{background:#141d2b!important}
html[data-theme="dark"] body.light-theme #ai-reels{--ai-gallery-line:var(--theme-line);--ai-gallery-ink:var(--theme-ink);--ai-accent:var(--theme-accent)}
html[data-theme="dark"] body.light-theme :is(.editorial-button,.ai-button){background:var(--theme-button);color:var(--theme-button-text)!important;border-color:var(--theme-button)}
html[data-theme="dark"] body.light-theme :is(.editorial-button,.ai-button):hover{background:var(--theme-button-hover);border-color:var(--theme-button-hover)}
html[data-theme="dark"] body.light-theme :is(.portfolio-intro h1,.ai-hero h1){color:var(--theme-ink)}
html[data-theme="dark"] body.light-theme :is(.portfolio-intro h1>span,.ai-hero h1 em){color:#a7b7ce}
html[data-theme="dark"] body.light-theme .live-dot{background:var(--theme-accent)}
html[data-theme="dark"] body.light-theme ::selection{background:#345580;color:#fff}
html[data-theme="dark"] body.light-theme :is(a,button,input,summary):focus-visible{outline-color:var(--theme-accent)!important}
html[data-theme="dark"] body.light-theme :is(.client-logo img,.brand-strip img){filter:grayscale(1) brightness(0) invert(.9)!important;opacity:.83}
html[data-theme="dark"] body.light-theme .client-logo-name{color:var(--theme-muted)!important}
/* The AI catalog uses the marks directly on the dark surface, without white tiles. */
html[data-theme="dark"] body.light-theme .ai-logo img{
 background:transparent;border-radius:0;box-shadow:none;object-fit:contain;
}
/* These two source files contain a white canvas. In dark mode it is optically
   removed while the black symbol becomes white. */
html[data-theme="dark"] body.light-theme .ai-logo img:is([src$="/openai.png"],[src$="/elevenlabs.png"]){
 filter:invert(1);mix-blend-mode:screen;
}
/* Compact utility icons outside the catalog still need their neutral plate. */
html[data-theme="dark"] :is(.rp-tool-icons img,.prompt-library-brand img){
 background:#e9eef5;border-radius:5px;object-fit:contain;
}
html[data-theme="dark"] .rp-tool-icons img{box-shadow:0 0 0 2px #e9eef5}
html[data-theme="dark"] body.light-theme :is(#musicGrid,#longGrid) .music-project-meta h3{color:var(--theme-ink)}
html[data-theme="dark"] body.light-theme :is(#musicGrid,#longGrid) .music-project-meta p{color:var(--theme-muted)}
html[data-theme="dark"] body.light-theme :is(#musicGrid,#longGrid) .music-project-credits strong{color:#d5e0f1}
html[data-theme="dark"] body.light-theme :is(#musicGrid,#longGrid) .music-project-credits span{color:var(--theme-quiet)}
html[data-theme="dark"] .reel-dialog{background:var(--theme-surface);color:var(--theme-ink);border-color:var(--theme-line)}
html[data-theme="dark"] .reel-dialog::backdrop{background:#02050cc9}
html[data-theme="dark"] .reel-dialog-heading h2{color:var(--theme-ink)}
html[data-theme="dark"] .reel-dialog-heading span{color:var(--theme-muted)}
html[data-theme="dark"] .reel-dialog-close{background:var(--theme-hover);color:var(--theme-ink);border-color:var(--theme-line)}
html[data-theme="dark"] body.light-theme .ai-filters button[aria-pressed="true"]{background:var(--theme-accent-soft);color:var(--theme-accent);border-color:var(--theme-ai-line)}
html[data-theme="dark"] .guide-page :is(input,select,textarea){color:var(--theme-ink);background:var(--theme-surface);border-color:var(--theme-line-strong);caret-color:var(--theme-accent)}
html[data-theme="dark"] .guide-page input::placeholder{color:var(--theme-quiet);opacity:1}
html[data-theme="dark"] .guide-page :is(.guide-prompt-card pre,.prompt-library-code pre){background:#0c121c;color:#dbe7f7}
html[data-theme="dark"] .guide-page .guide-calculator{border:1px solid #304663;background:#152238;color:#f0f4fa}
html[data-theme="dark"] .guide-page .guide-calculator-fields input{background:transparent;color:#f0f4fa;border-color:#58708f}
html[data-theme="dark"] .guide-page .guide-progress span{background:var(--theme-accent)}
html[data-theme="dark"] body.light-theme :is(.guide-summary-actions a,.guide-download){background:var(--theme-accent-soft);color:var(--theme-ink);border-color:var(--theme-ai-line)}
/* Footer palette wins over legacy generic footer styles. */
body.light-theme .rp-footer{background:var(--theme-footer);color:var(--theme-ink);border-color:var(--theme-line)}
html[data-theme="dark"] body.light-theme .rp-footer{background:var(--theme-footer);color:var(--theme-ink);border-color:var(--theme-line)}
/* High-specificity legacy components: exact exceptions keep each state readable. */
html[data-theme="dark"] body.light-theme .clients--featured .client-logo img,
html[data-theme="dark"] body.light-theme #contact .client-logo img,
html[data-theme="dark"] body.light-theme #contact .clients--secondary .client-logo img{
 filter:grayscale(1) brightness(0) invert(1)!important;opacity:1!important;
}
html[data-theme="dark"] body.light-theme .guide-callout{background:#1b2c48;color:var(--theme-ink)}
html[data-theme="dark"] body.light-theme :is(.guide-skip,.case-timing-use,.guide-value-badge){background:#345fa7;color:#fff!important}
html[data-theme="dark"] body.light-theme .prompt-library-filters button:is(:hover,[aria-pressed="true"]),
html[data-theme="dark"] body.light-theme .guide-duration-filters button[aria-pressed="true"],
html[data-theme="dark"] body.light-theme .guide-prompt-card button.is-copied{
 background:var(--theme-accent-soft);color:var(--theme-accent);border-color:var(--theme-ai-line);
}
html[data-theme="dark"] :is(.case-tool>img,.case-pipeline-list img,.prompt-library-index-brand img){background:#e9eef5;border-radius:4px}
/* Mobile/layout patches also style the homepage AI cards. Override their light
   backing surfaces without changing the video frame, crop or card geometry. */
html[data-theme="dark"] body.light-theme #ai-reels .ai-grid .video-card,
html[data-theme="dark"] body.light-theme #ai-reels .ai-grid .video-card:is(:hover,:focus-within){background:transparent!important}
html[data-theme="dark"] body.light-theme #ai-reels .video-card .model-badge{background:var(--theme-surface)!important;color:var(--theme-ink)!important}
html[data-theme="dark"] body.light-theme .ai-skip{background:#345fa7;color:#fff!important}

/* assets/site-components.css */
/* Shared additions use semantic colour tokens; desktop content geometry is unchanged. */
.rp-sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
/* A single useful footer: identity, actual destinations and direct contact. */
body .rp-footer{margin:0;padding:0;background:var(--theme-footer,#f0f2f4);color:var(--theme-ink,#191c20);border-top:1px solid var(--theme-line,#dce1e5);font:500 14px/1.6 var(--editorial-font,Manrope,sans-serif)}
.rp-footer,.rp-footer *{box-sizing:border-box}
.rp-footer-inner{width:min(1320px,calc(100% - 96px));margin-inline:auto;padding:64px 0 22px}
.rp-footer-grid{display:grid;grid-template-columns:1.3fr .85fr .95fr 1.3fr;gap:clamp(24px,4vw,64px);padding-bottom:54px}
.rp-footer-grid>*{min-width:0}
.rp-footer .rp-brand{align-items:center}
.rp-footer .rp-brand img{width:44px;height:44px;flex-basis:44px}
.rp-footer .rp-brand>span{font-size:15px}
.rp-footer .rp-brand small{font-size:11px;line-height:1.5}
.rp-footer-brand>p{margin:22px 0 0;max-width:32ch;font-size:13px;line-height:1.85;color:var(--theme-muted,#65707a)}
.rp-footer-brand::after{display:none;content:none}
.rp-footer-contact::after{display:block;margin-top:10px;color:var(--theme-ink,#191c20);font-size:10px;font-weight:650;line-height:1.5;letter-spacing:.09em;text-transform:uppercase}
html[lang="pl"] .rp-footer-contact::after{content:"Częstochowa, Polska"}
html[lang="en"] .rp-footer-contact::after{content:"Based in Częstochowa, Poland"}
html[lang="de"] .rp-footer-contact::after{content:"Standort: Częstochowa, Polen"}
html[lang="fr"] .rp-footer-contact::after{content:"Basé à Częstochowa, Pologne"}
html[lang="cs"] .rp-footer-contact::after{content:"Působím v Čenstochové, Polsko"}
html[lang="uk"] .rp-footer-contact::after,html[lang="ua"] .rp-footer-contact::after{content:"Працюю в Ченстохові, Польща"}
.rp-footer h2{font-size:12px;font-weight:650;letter-spacing:0;line-height:1.6;margin:0 0 16px;color:var(--theme-ink,#191c20)}
.rp-footer a{text-decoration:none;color:inherit}
.rp-footer a:hover{color:var(--theme-accent,#285cc4)}
.rp-footer a:focus-visible{outline:2px solid var(--theme-accent,#285cc4)!important;outline-offset:4px}
.rp-footer-column{display:flex;flex-direction:column;align-items:flex-start}
.rp-footer-column>a{display:flex;align-items:center;min-height:36px;font-size:13px;line-height:1.5;color:var(--theme-muted,#65707a);padding:5px 0}
.rp-footer-column h2{display:flex;align-items:center;gap:8px}
.rp-footer-ai-dot{display:none}
.rp-footer-contact .rp-footer-mail{display:flex;align-items:baseline;justify-content:space-between;gap:12px;font-size:clamp(15px,1.3vw,19px);font-weight:550;letter-spacing:-.025em;padding:2px 0 11px;border-bottom:1px solid var(--theme-line,#dce1e5);overflow-wrap:anywhere}
.rp-footer-mail>span:first-child{min-width:0}
.rp-footer-mail>span:last-child{flex-shrink:0}
.rp-footer-contact .rp-footer-phone{display:inline-flex;align-items:center;min-height:46px;font-size:18px;letter-spacing:-.02em;margin-top:8px}
.rp-footer-contact .rp-footer-process{display:none!important}
.rp-footer-bottom{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px 26px;border-top:1px solid var(--theme-line,#dce1e5);padding-top:20px;color:var(--theme-muted,#65707a);font-size:11px}
.rp-footer-bottom p{margin:0;line-height:1.6}.rp-footer-bottom>a{display:inline-flex;align-items:center;gap:14px;min-height:36px;color:var(--theme-ink,#191c20)}
/* Real production milestones, not decorative cards. */
body .rp-process{color:var(--theme-ink,#191c20)}
.rp-process-heading{display:grid;grid-template-columns:1.4fr 1fr;align-items:end;gap:3rem;margin-bottom:52px}
.rp-process-heading h2{margin:0;max-width:17ch;font-size:clamp(32px,4vw,56px);font-weight:500;line-height:1.12;letter-spacing:-.045em}
.rp-process-heading>p{margin:0 0 3px auto;max-width:43ch;color:var(--theme-muted,#65707a);font-size:15px;line-height:1.8}
.rp-process-steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(22px,3vw,44px);list-style:none;padding:0;margin:0;counter-reset:none}
.rp-process-steps>li{min-width:0;position:relative;margin:0;padding:0}
.rp-step-track{display:flex;align-items:center;gap:14px;margin-bottom:28px}
.rp-step-number{display:grid;place-items:center;flex:0 0 38px;width:38px;height:38px;border:1px solid var(--theme-ai-line,#bdcee7);border-radius:50%;color:var(--theme-accent,#285cc4);background:var(--theme-bg,#fafaf9);font-size:12px;font-weight:650;letter-spacing:.025em;font-variant-numeric:tabular-nums}
.rp-step-line{height:1px;flex:1;background:var(--theme-line-strong,#bac6d5);margin-right:calc(-1 * clamp(22px,3vw,44px) + 14px)}
.rp-process-steps>li:last-child .rp-step-line{background:var(--theme-line,#dce1e5);margin-right:0}
.rp-step-copy .rp-step-kicker{margin:0 0 12px;font-size:10px;font-weight:650;letter-spacing:.09em;color:var(--theme-accent,#285cc4);line-height:1.6}
.rp-step-copy h3{margin:0 0 17px;color:var(--theme-ink,#191c20);font-size:clamp(20px,1.8vw,25px);font-weight:550;line-height:1.3;letter-spacing:-.03em}
.rp-step-copy>p:not(.rp-step-kicker){margin:0;color:var(--theme-muted,#65707a);font-size:14px;line-height:1.85}
.rp-process-bottom{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:40px;padding-top:23px;border-top:1px solid var(--theme-line,#dce1e5)}
.rp-process-bottom>p{display:flex;align-items:center;gap:10px;margin:0;font-size:13px;color:var(--theme-ink,#191c20)}
.rp-process-bottom svg{width:20px;height:20px;flex:0 0 20px;stroke:var(--theme-accent,#285cc4);fill:none;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.rp-process-bottom>a{display:inline-flex;align-items:center;justify-content:space-between;gap:24px;min-height:44px;font-size:13px;font-weight:600;color:var(--theme-accent,#285cc4);text-decoration:none}
.rp-process-bottom>a:hover{text-decoration:underline;text-underline-offset:5px}
/* Hover previews have their own lightweight video, never taking over the full player. */
.ai-project-player .rp-ai-preview{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover;opacity:0;pointer-events:none;transition:opacity .18s ease;z-index:1}
.ai-project-player.is-previewing .rp-ai-preview{opacity:1}
.ai-project-player .ai-project-play{z-index:3}
.ai-project-player .ai-project-play[hidden]{display:none!important}
.rp-player-error{position:absolute;left:8px;right:8px;bottom:8px;padding:10px;background:#152030ed;color:white;font-size:12px;line-height:1.6;z-index:4}
.rp-player-error[hidden]{display:none}
/* Desktop keeps the full software/model directory exactly as before. */
.rp-tool-toggle,.rp-adobe-toggle,.rp-tools-expand-all{display:none}
.ai-catalog-group[hidden]{display:none!important}
@media(max-width:1100px) and (min-width:701px){
 .rp-footer-grid{grid-template-columns:1.2fr 1fr 1fr;gap:32px}.rp-footer-contact{grid-column:1/-1;display:grid;grid-template-columns:1.2fr 1fr 1fr;align-items:center;gap:20px}.rp-footer-contact::after{grid-column:1/-1;justify-self:start}.rp-footer-contact h2{grid-column:1/-1;margin-bottom:0}.rp-footer-contact .rp-footer-phone,.rp-footer-contact .rp-footer-process{margin-top:0}
 .rp-process-steps{grid-template-columns:repeat(2,minmax(0,1fr));gap:38px 32px}.rp-process-steps>li:nth-child(2) .rp-step-line{margin-right:0}.rp-process-heading{grid-template-columns:1fr 1fr}
}
@media(max-width:700px){
 .rp-footer-inner{width:calc(100% - 40px);padding:38px 0 18px}.rp-footer-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:32px 22px;padding-bottom:30px}.rp-footer-brand,.rp-footer-contact{grid-column:1/-1}.rp-footer-brand>p{max-width:42ch;margin-top:16px;font-size:13px}.rp-footer-column>a{min-height:44px;font-size:13px}.rp-footer h2{margin-bottom:8px;font-size:12px}.rp-footer-contact{padding-top:24px;border-top:1px solid var(--theme-line,#dce1e5)}.rp-footer-contact .rp-footer-mail{font-size:19px;min-height:44px}.rp-footer-contact .rp-footer-process{margin-top:4px;min-height:44px}.rp-footer-bottom{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 16px;font-size:10px}.rp-footer-bottom p{grid-column:1}.rp-footer-bottom>a{grid-column:2;grid-row:1/3;gap:7px;white-space:nowrap}
 .rp-process-heading{grid-template-columns:minmax(0,1fr);gap:18px;margin-bottom:30px}.rp-process-heading h2{font-size:clamp(30px,8.3vw,42px);max-width:20ch}.rp-process-heading>p{margin:0;max-width:none;font-size:14px;line-height:1.8}
 .rp-process-steps{grid-template-columns:minmax(0,1fr);gap:0}.rp-process-steps>li{display:grid;grid-template-columns:38px minmax(0,1fr);gap:18px;padding-bottom:30px}.rp-process-steps>li:last-child{padding-bottom:0}.rp-step-track{position:relative;display:block;margin:0}.rp-step-number{position:relative;z-index:1}.rp-step-line{position:absolute;left:18px;top:48px;bottom:-20px;width:1px;height:auto;margin:0;background:var(--theme-line-strong,#bac6d5)}.rp-process-steps>li:last-child .rp-step-line{display:none}.rp-step-copy{padding-top:1px}.rp-step-copy .rp-step-kicker{font-size:9px;margin-bottom:7px}.rp-step-copy h3{font-size:21px;line-height:1.3;margin-bottom:12px}.rp-step-copy>p:not(.rp-step-kicker){font-size:14px;line-height:1.8}.rp-process-bottom{align-items:flex-start;flex-direction:column;gap:8px;margin-top:28px;padding-top:20px}.rp-process-bottom>p{font-size:12px}.rp-process-bottom>a{font-size:13px}
 /* Five compact category rows instead of seventeen fully expanded model essays. */
 body.light-theme .rp-catalog-compact .ai-catalog-group{display:block!important;padding:0!important;margin:0!important;border-top:0!important;border-bottom:1px solid var(--theme-line,#dce1e5)!important;min-height:0!important}
 body.light-theme .rp-catalog-compact .ai-catalog-group[hidden]{display:none!important}
 body.light-theme .rp-catalog-compact .ai-catalog-group:first-child{border-top:1px solid var(--theme-line,#dce1e5)!important}
 .rp-tool-toggle{display:grid;grid-template-columns:minmax(0,1fr) 32px 20px;align-items:center;gap:12px;width:100%;min-height:80px;border:0;background:transparent;color:var(--theme-ink,#191c20);padding:16px 0;text-align:left;cursor:pointer;font:inherit}
 .rp-tool-title{display:block;font-size:14px;font-weight:600;line-height:1.5;letter-spacing:-.015em}.rp-tool-icons{display:flex;align-items:center;gap:8px;margin-top:10px;min-height:23px}.rp-tool-icons img{display:block;width:23px;height:23px;object-fit:contain}.rp-tool-icons small{font-size:10px;color:var(--theme-muted,#65707a)}
 .rp-tool-count{color:var(--theme-muted,#65707a);font-size:12px;font-variant-numeric:tabular-nums;text-align:right}.rp-tool-toggle>.rp-chevron{width:16px;height:16px;color:var(--theme-accent,#285cc4)}.rp-tool-toggle[aria-expanded="true"]>.rp-chevron{transform:rotate(180deg)}
 body.light-theme .rp-catalog-compact .ai-catalog-group:not(.is-expanded)>.ai-group-heading,body.light-theme .rp-catalog-compact .ai-catalog-group:not(.is-expanded)>.ai-model-list{display:none!important}
 body.light-theme .rp-catalog-compact .ai-group-heading h3{display:none!important}
 body.light-theme .rp-catalog-compact .ai-group-heading>p{margin:0 0 24px;font-size:13px;line-height:1.75;color:var(--theme-muted,#65707a)}
 body.light-theme .rp-catalog-compact .ai-model-list{margin:0!important;padding:0 0 22px!important;gap:24px!important}
 body.light-theme .rp-catalog-compact .ai-tool-entry{gap:13px}.rp-catalog-compact .ai-tool-entry .ai-logo{width:42px!important;height:42px!important;flex-basis:42px!important}
 body.light-theme .rp-catalog-compact .ai-tool-body h4{font-size:17px!important;margin:3px 0 8px!important}.rp-catalog-compact .ai-tool-body p{font-size:13px!important;line-height:1.75!important}
 body.light-theme .ai-catalog-toolbar{gap:12px;margin-bottom:16px}.rp-tools-expand-all{display:inline-flex;align-items:center;min-height:44px;border:0;border-bottom:1px solid var(--theme-line-strong,#bac6d5);padding:5px 0;background:transparent;color:var(--theme-accent,#285cc4);font:600 12px/1.5 var(--editorial-font,Manrope,sans-serif);cursor:pointer}
 /* Adobe becomes three concise rows, with optional descriptions. */
 body.light-theme #showreel #tech .programs-grid{display:grid!important;grid-template-columns:minmax(0,1fr)!important;border-top:1px solid var(--theme-line,#dce1e5)!important;border-bottom:0!important}
 body.light-theme #showreel #tech .programs-grid .tool-item{position:relative;display:grid!important;grid-template-columns:40px minmax(0,1fr) 44px!important;align-items:center!important;gap:6px 14px!important;min-height:78px!important;padding:14px 0!important;border:0!important;border-bottom:1px solid var(--theme-line,#dce1e5)!important;background:transparent!important;box-shadow:none!important}
 body.light-theme #showreel #tech .programs-grid .tool-head{display:contents!important}
 body.light-theme #showreel #tech .programs-grid .tool-tag{display:none!important}
 body.light-theme #showreel #tech .programs-grid .tool-icons{grid-column:1;grid-row:1;width:40px!important;height:40px!important;order:initial!important}
 body.light-theme #showreel #tech .programs-grid .tool-icon{width:36px!important;height:36px!important;border-radius:7px!important;box-shadow:none!important}
 body.light-theme #showreel #tech .programs-grid h3{grid-column:2;grid-row:1;font-size:15px!important;line-height:1.5!important}
 .rp-adobe-toggle{display:grid;place-items:center;grid-column:3;grid-row:1;width:44px;height:44px;border:0;background:transparent;color:var(--theme-accent,#285cc4);cursor:pointer}
 .rp-adobe-toggle[aria-expanded="true"] .rp-chevron{transform:rotate(180deg)}
 body.light-theme #showreel #tech .programs-grid .tool-desc{grid-column:2/-1;grid-row:2;max-width:none;margin:0 0 6px!important;font-size:13px!important;line-height:1.75!important}
 body.light-theme #showreel #tech .programs-grid .tool-item:not(.is-expanded) .tool-desc{display:none!important}
}
@media(max-width:359px){.rp-footer-inner{width:calc(100% - 28px)}.rp-footer-bottom{grid-template-columns:1fr}.rp-footer-bottom>a{grid-column:1;grid-row:3;justify-self:start}.rp-footer-contact .rp-footer-mail{font-size:17px}.rp-process-steps>li{gap:14px}.rp-step-copy h3{font-size:20px}.rp-footer-grid{column-gap:16px}}
@media(prefers-reduced-motion:reduce){.rp-ai-preview,.rp-chevron{transition:none!important}}
/* Match the specificity of the homepage's older grid declarations. */
@media(max-width:700px){
 html[data-theme] body.light-theme #showreel #tech .programs-grid{gap:0!important;background:transparent!important;border:0!important;border-top:1px solid var(--theme-line)!important}
 html[data-theme] body.light-theme #showreel #tech .programs-grid .tool-item{grid-template-rows:auto auto!important;background:transparent!important;border:0!important;border-bottom:1px solid var(--theme-line)!important}
 html[data-theme] body.light-theme #showreel #tech .programs-grid .tool-item h3{grid-column:2!important;grid-row:1!important;font-size:15px!important}
 html[data-theme] body.light-theme #showreel #tech .programs-grid .tool-icons{grid-column:1!important;grid-row:1!important}
 html[data-theme] body.light-theme #showreel #tech .programs-grid .tool-desc{grid-column:2/-1!important;grid-row:2!important;max-width:none!important}
}
/* Keep the catalogue introduction in proportion to its compact phone controls. */
@media(max-width:700px){
 html[data-theme] body.light-theme .ai-full-catalog .ai-section-heading{gap:16px;margin-bottom:22px}
 html[data-theme] body.light-theme .ai-full-catalog .ai-section-heading h2{font-size:clamp(26px,7.2vw,32px);line-height:1.12;letter-spacing:-.045em}
 html[data-theme] body.light-theme .ai-full-catalog .ai-section-heading>p{font-size:13px;line-height:1.7}
 html[data-theme] body.light-theme .ai-full-catalog .ai-catalog-toolbar{gap:10px;margin-bottom:18px}
}
/* AI's generic heading rule must not shrink the shared footer headings. */
body.light-theme .rp-footer h2{font-weight:600!important;line-height:1.6!important}

/* One secondary action below the directory reveals every tool category. */
html[data-theme] body.light-theme [data-ai-catalog="full"] + .rp-tools-expand-all {
 display:flex!important;align-items:center;justify-content:center;gap:12px;width:max-content;min-height:46px;
 margin:clamp(24px,3vw,38px) auto 0;padding:6px 0;border:0;border-bottom:1px solid var(--theme-line-strong,#bac6d5);
 background:transparent;color:var(--theme-accent,#285cc4);font:650 12px/1.5 var(--editorial-font,Manrope,sans-serif);
 cursor:pointer
}
html[data-theme] body.light-theme [data-ai-catalog="full"] + .rp-tools-expand-all::after {
 content:"\2193";display:inline-block;font-size:16px;line-height:1;transition:transform .22s ease
}
html[data-theme] body.light-theme [data-ai-catalog="full"] + .rp-tools-expand-all[aria-expanded="true"]::after {transform:rotate(180deg)}
html[data-theme] body.light-theme [data-ai-catalog="full"] + .rp-tools-expand-all:focus-visible {outline:2px solid var(--theme-accent,#285cc4);outline-offset:5px}
@media(prefers-reduced-motion:reduce){html[data-theme] body.light-theme [data-ai-catalog="full"] + .rp-tools-expand-all::after{transition:none}}

/* The collapsed AI directory exposes one full row plus half of the next row.
   The height is measured by site-enhancements.js, so wrapped cards cannot make
   a later row leak through the fade. */
html[data-theme] body.light-theme [data-ai-catalog="full"].rp-catalog-compact.rp-catalog-preview-clipped {
 position:relative;
}
html[data-theme] body.light-theme [data-ai-catalog="full"].rp-catalog-compact.rp-catalog-preview-clipped:has(+ .rp-tools-expand-all[aria-expanded="false"]) {
 max-height:var(--rp-catalog-preview-height);
 overflow:hidden;
 -webkit-mask-image:linear-gradient(to bottom,#000 0%,#000 calc(100% - var(--rp-catalog-fade-height,88px)),transparent 100%);
 mask-image:linear-gradient(to bottom,#000 0%,#000 calc(100% - var(--rp-catalog-fade-height,88px)),transparent 100%);
}
html[data-theme] body.light-theme [data-ai-catalog="full"].rp-catalog-compact.rp-catalog-preview-clipped:has(+ .rp-tools-expand-all[aria-expanded="false"]) + .rp-tools-expand-all {
 position:relative;
 z-index:5;
 /* Keep the label in the lower part of the fade, after the card copy has
    disappeared, instead of placing it over the last visible descriptions. */
 margin-top:calc(-1 * var(--rp-catalog-fade-height,88px) + clamp(4.5rem,5.5vw,5.75rem));
 border-color:transparent;
 background:transparent;
 color:#293441;
 font-weight:550;
 box-shadow:none;
}
html[data-theme] body.light-theme [data-ai-catalog="full"].rp-catalog-compact.rp-catalog-preview-clipped:has(+ .rp-tools-expand-all[aria-expanded="false"]) + .rp-tools-expand-all:hover,
html[data-theme] body.light-theme [data-ai-catalog="full"].rp-catalog-compact.rp-catalog-preview-clipped:has(+ .rp-tools-expand-all[aria-expanded="false"]) + .rp-tools-expand-all:focus-visible {
 background:rgba(237,241,245,.76);
}

/* assets/footer-vcard.css */
/* A single decisive mobile-first action. It echoes the angular contact button
   in the header and describes the benefit instead of the vCard file format. */
html[data-theme] body.light-theme .rp-footer .rp-footer-contact .rp-footer-vcard {
    position: relative;
    isolation: isolate;
    display: grid !important;
    grid-template-columns: 46px minmax(0, 1fr) 34px !important;
    gap: 13px;
    align-items: center;
    width: 100%;
    min-height: 94px;
    margin-top: 14px;
    padding: 14px !important;
    overflow: hidden;
    animation: none !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #182635 !important;
    color: #fff !important;
    box-shadow: 0 14px 34px rgba(24, 38, 53, .15) !important;
    text-decoration: none;
    transform: translateY(0);
    transition: background-color 190ms ease, box-shadow 190ms ease, transform 190ms ease !important;
}

html[data-theme] body.light-theme .rp-footer .rp-footer-contact .rp-footer-vcard::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    z-index: -1;
    display: block !important;
    width: auto !important;
    height: auto !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: linear-gradient(115deg, rgba(255, 255, 255, .11), transparent 42%, rgba(86, 141, 216, .12)) !important;
    opacity: .72;
    transform: none !important;
    transition: opacity 190ms ease !important;
    pointer-events: none;
}

html[data-theme] body.light-theme .rp-footer .rp-footer-contact .rp-footer-vcard::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 3px;
    background: #91b9f4;
    pointer-events: none;
}

html[data-theme] body.light-theme .rp-footer .rp-footer-contact .rp-footer-vcard-mark {
    position: relative;
    z-index: 1;
    display: grid !important;
    width: 46px;
    height: 46px;
    place-items: center;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: rgba(255, 255, 255, .1);
    color: #fff;
}

html[data-theme] body.light-theme .rp-footer .rp-footer-contact .rp-footer-vcard-mark svg {
    display: block;
    width: 25px;
    height: 25px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

html[data-theme] body.light-theme .rp-footer .rp-footer-contact .rp-footer-vcard-copy {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 3px;
    min-width: 0;
}

html[data-theme] body.light-theme .rp-footer .rp-footer-contact .rp-footer-vcard-eyebrow {
    color: #a8c9f7;
    font-size: .56rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: .14em;
}

html[data-theme] body.light-theme .rp-footer .rp-footer-contact .rp-footer-vcard-copy strong {
    color: #fff !important;
    font-size: .94rem !important;
    font-weight: 650;
    line-height: 1.22 !important;
    letter-spacing: -.015em;
    word-break: normal;
    overflow-wrap: normal;
}

html[data-theme] body.light-theme .rp-footer .rp-footer-contact .rp-footer-vcard-copy small {
    max-width: 30ch;
    color: rgba(255, 255, 255, .72) !important;
    font-size: .67rem !important;
    line-height: 1.38 !important;
    word-break: normal;
    overflow-wrap: normal;
}

html[data-theme] body.light-theme .rp-footer .rp-footer-contact .rp-footer-vcard-arrow {
    position: relative;
    z-index: 1;
    display: grid !important;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 0 !important;
    border-radius: 0 !important;
    background: #fff !important;
    color: #182635 !important;
    font-size: 1rem;
    transition: color 190ms ease, background-color 190ms ease, transform 190ms ease;
}

html[data-theme] body.light-theme .rp-footer .rp-footer-contact .rp-footer-vcard:hover,
html[data-theme] body.light-theme .rp-footer .rp-footer-contact .rp-footer-vcard:focus-visible {
    background: #24415e !important;
    color: #fff !important;
    box-shadow: 0 18px 40px rgba(24, 38, 53, .2) !important;
    transform: translateY(-2px) !important;
}

html[data-theme] body.light-theme .rp-footer .rp-footer-contact .rp-footer-vcard:hover::before,
html[data-theme] body.light-theme .rp-footer .rp-footer-contact .rp-footer-vcard:focus-visible::before {
    opacity: 1;
}

html[data-theme] body.light-theme .rp-footer .rp-footer-contact .rp-footer-vcard:hover .rp-footer-vcard-arrow,
html[data-theme] body.light-theme .rp-footer .rp-footer-contact .rp-footer-vcard:focus-visible .rp-footer-vcard-arrow {
    background: #a8c9f7 !important;
    color: #172536 !important;
    transform: translateX(2px);
}

html[data-theme] body.light-theme .rp-footer .rp-footer-contact .rp-footer-vcard:active {
    transform: translateY(0) !important;
}

@media (max-width: 700px) {
    html[data-theme] body.light-theme .rp-footer .rp-footer-contact .rp-footer-vcard {
        grid-template-columns: 44px minmax(0, 1fr) 34px !important;
        min-height: 90px;
        margin-top: 12px;
        padding: 13px !important;
    }

    html[data-theme] body.light-theme .rp-footer .rp-footer-contact .rp-footer-vcard-mark {
        width: 44px;
        height: 44px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html[data-theme] body.light-theme .rp-footer .rp-footer-contact .rp-footer-vcard,
    html[data-theme] body.light-theme .rp-footer .rp-footer-contact .rp-footer-vcard::before,
    html[data-theme] body.light-theme .rp-footer .rp-footer-contact .rp-footer-vcard-arrow {
        transition: none !important;
    }
}

html[data-theme] body.light-theme .rp-footer .rp-footer-contact .rp-footer-vcard-copy :is(strong, small) {
    white-space: normal;
    overflow-wrap: anywhere;
    hyphens: auto;
}
html[data-theme] body.light-theme .rp-footer .rp-footer-contact .rp-footer-vcard-eyebrow {
    overflow-wrap: anywhere;
}

/* assets/content-motion.css */
/* Disclosure motion primitives. Page composition is otherwise unchanged. */
html.rp-layout-changing,
html.rp-layout-changing body {
    overflow-anchor: none !important;
    scroll-behavior: auto !important;
}

/* Override the more specific preview crops only for the measured transition. */
html[data-theme] body.light-theme #main .rp-is-expanding,
html[data-theme] body.light-theme #main #client-reels .rp-motion-reels.rp-is-expanding {
    max-height: none !important;
    min-height: 0 !important;
    overflow: clip !important;
    transition: none !important;
    -webkit-mask-image: none !important;
    mask-image: none !important;
}

html[data-theme] body.light-theme #main .rp-motion-reels.rp-is-expanding .video-card {
    display: block !important;
}

html body.light-theme .rp-is-expanding {
    overflow: hidden !important;
    overflow: clip !important;
    transition: none !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow-anchor: none;
    will-change: height;
}

/* Reels have their own measured animation in content-motion.js.
   Disable the legacy max-height/opacity/translate transitions and the generic
   IntersectionObserver reveal transition inside this disclosure. */
html body.light-theme .rp-motion-reels {
    max-height: none !important;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    overflow: hidden;
    overflow: clip;
    contain: paint;
}
html body.light-theme .rp-motion-reels[hidden] { display: none !important; }
html body.light-theme .rp-motion-reels.rp-reels-animating { display: grid !important; }
html body.light-theme .rp-motion-reels .video-card.reveal,
html body.light-theme .rp-motion-reels .video-card.reveal.is-visible {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}

html body.light-theme .client-full-list { transition: none !important; max-height: none !important; }
html body.light-theme .client-full-list:not(.is-open) {
    height: 0 !important;
    min-height: 0 !important;
    padding-block: 0 !important;
    margin-block: 0 !important;
    overflow: hidden !important;
    visibility: hidden;
}
html body.light-theme .client-full-list.is-open { height: auto; opacity: 1; visibility: visible; }
html body.light-theme .client-full-list.rp-is-expanding { visibility: visible; opacity: 1; }
html body.light-theme .client-full-list .client-logo { animation: none !important; }
html body.light-theme .rp-catalog-compact .rp-is-expanding { box-sizing: border-box; }
html body.light-theme details.rp-is-expanding { box-sizing: border-box; }
html body.light-theme .client-full-list .client-logo {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
}

/* AI catalogue tab change: the whole result set swipes horizontally and fades
   as one surface. JavaScript also eases the measured height between tabs. */
html body.light-theme [data-ai-catalog="full"] { position: relative; }
html body.light-theme [data-ai-catalog="full"].rp-catalog-is-switching {
    isolation: isolate;
    min-height: 1px;
    backface-visibility: hidden;
    will-change: height, opacity, transform;
}

@media (prefers-reduced-motion: reduce) {
    html body.light-theme .rp-is-expanding { will-change: auto; }
    html body.light-theme [data-ai-catalog="full"].rp-catalog-is-switching { will-change: auto; }
}

/* Scroll-triggered AI chapter intro. The layout is centered before motion is
   prepared, so there is no jump when JavaScript starts the typewriter. */
html body.light-theme .ai-zone-intro {
    display: grid;
    justify-items: center;
    text-align: center;
}

html body.light-theme .ai-zone-intro .ai-zone-kicker {
    width: 100%;
    text-align: center;
}

html body.light-theme .ai-zone-intro .ai-zone-heading {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    justify-items: center !important;
    gap: clamp(18px, 2.2vw, 30px) !important;
    position: relative;
    width: 100%;
}

html body.light-theme .ai-zone-intro .ai-zone-mark {
    margin-inline: auto !important;
}

/* The mark is a transient chapter card, not a persistent badge. The final copy
   keeps its full footprint underneath it, so the section never shifts. */
html body.light-theme .ai-zone-intro.is-typewriter-prepared .ai-zone-mark {
    display: grid !important;
    position: absolute !important;
    z-index: 2;
    inset: 0 !important;
    width: auto !important;
    min-width: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    place-items: center !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--ai-accent) !important;
    font-size: clamp(5.75rem, 13vw, 10.5rem) !important;
    font-weight: 650 !important;
    line-height: .8 !important;
    letter-spacing: -.065em !important;
    opacity: 0;
    pointer-events: none;
    transform: scale(.975);
    overflow: visible !important;
    filter: brightness(.92);
    text-shadow: 0 0 0 rgba(40, 92, 196, 0);
    transition:
        opacity 380ms ease,
        transform 1050ms cubic-bezier(.18, .78, .16, 1),
        filter 700ms ease,
        text-shadow 700ms ease;
}

html body.light-theme .ai-zone-intro.is-typewriter-prepared .ai-zone-mark::before {
    content: "";
    position: absolute;
    width: 1.7em;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(91, 142, 236, .34) 0%, rgba(91, 142, 236, .12) 38%, transparent 72%);
    opacity: 0;
    filter: blur(15px);
    transform: scale(.58);
    transition: opacity 520ms ease, transform 900ms cubic-bezier(.18, .78, .16, 1);
    pointer-events: none;
}

html body.light-theme .ai-zone-intro.is-typewriter-prepared.is-ai-splash-visible .ai-zone-mark {
    opacity: 1;
    transform: scale(1);
    animation: rp-ai-mark-illuminate 1050ms ease-out both;
}

html body.light-theme .ai-zone-intro.is-typewriter-prepared.is-ai-splash-visible .ai-zone-mark::before {
    opacity: 1;
    transform: scale(1);
}

html body.light-theme .ai-zone-intro.is-typewriter-prepared.is-ai-splash-exiting .ai-zone-mark {
    opacity: 0;
    transform: scale(1.012);
}

html body.light-theme .ai-zone-intro.is-typewriter-prepared.is-ai-copy-stage .ai-zone-mark {
    visibility: visible;
    opacity: 1;
    filter: brightness(1);
    text-shadow: 0 0 0 rgba(40, 92, 196, 0);
    transform: translateY(calc(-50% + .62rem)) scale(.116);
}

html body.light-theme .ai-zone-intro.is-typewriter-prepared.is-ai-copy-stage .ai-zone-mark::before {
    opacity: 0;
    transform: scale(.42);
}

html body.light-theme .ai-zone-intro.is-typewriter-prepared .ai-zone-kicker {
    opacity: 0;
    transform: translateY(5px);
    transition: opacity 360ms ease, transform 480ms cubic-bezier(.22, .72, .18, 1);
}

html body.light-theme .ai-zone-intro.is-typewriter-prepared.is-ai-copy-stage .ai-zone-kicker {
    opacity: 1;
    transform: translateY(0);
}

html body.light-theme .ai-zone-intro .ai-zone-heading > div {
    display: grid;
    justify-items: center;
    width: 100%;
}

html body.light-theme .ai-zone-intro .ai-zone-persistent-mark {
    display: block;
    margin: 0 0 clamp(12px, 1.4vw, 18px);
    color: var(--ai-accent);
    font: 700 clamp(1rem, 1.45vw, 1.2rem)/1 Manrope, Arial, sans-serif;
    letter-spacing: .16em;
    text-indent: .16em;
    opacity: 1;
}

html body.light-theme .ai-zone-intro.is-typewriter-prepared .ai-zone-persistent-mark {
    visibility: hidden;
    opacity: 0;
    transform: translateY(5px);
    transition: opacity 360ms ease, transform 480ms cubic-bezier(.22, .72, .18, 1);
}

html body.light-theme .ai-zone-intro.is-typewriter-prepared.is-ai-copy-stage .ai-zone-persistent-mark {
    visibility: hidden;
    opacity: 0;
    transform: translateY(0);
}

html body.light-theme .ai-zone-intro .ai-zone-heading h2 {
    max-width: 22ch !important;
    text-align: center !important;
}

html body.light-theme .ai-zone-intro .ai-zone-heading p {
    max-width: 58ch !important;
    margin-inline: auto !important;
    text-align: center !important;
}

html body.light-theme .ai-zone-intro .ai-type-line {
    display: block;
    min-height: 1em;
}

html body.light-theme .ai-zone-intro .ai-type-text {
    white-space: pre-wrap;
}

html body.light-theme .ai-zone-intro .ai-type-cursor {
    display: inline-block;
    width: .055em;
    height: .78em;
    margin-left: .055em;
    background: currentColor;
    opacity: 0;
    vertical-align: -.03em;
}

html body.light-theme .ai-zone-intro .ai-type-cursor.is-visible {
    opacity: 1;
}

html body.light-theme .ai-zone-intro .ai-type-cursor.is-idle {
    animation: rp-ai-cursor-blink .82s step-end infinite;
}

html body.light-theme .ai-zone-intro .ai-type-cursor.is-fading {
    opacity: 0;
    animation: none;
    transition: opacity 420ms ease;
}

html body.light-theme .ai-zone-intro.is-typewriter-prepared .ai-zone-heading p {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 620ms ease, transform 620ms cubic-bezier(.22, .72, .18, 1);
}

html body.light-theme .ai-zone-intro.is-typewriter-prepared.is-copy-visible .ai-zone-heading p {
    opacity: 1;
    transform: translateY(0);
}

@keyframes rp-ai-cursor-blink {
    0%, 46% { opacity: 1; }
    47%, 100% { opacity: 0; }
}

@keyframes rp-ai-mark-illuminate {
    0% {
        filter: brightness(.82) saturate(.88);
        text-shadow: 0 0 0 rgba(40, 92, 196, 0);
    }
    42% {
        filter: brightness(1.38) saturate(1.28);
        text-shadow: 0 0 16px rgba(72, 122, 222, .42), 0 0 48px rgba(72, 122, 222, .22);
    }
    100% {
        filter: brightness(1) saturate(1);
        text-shadow: 0 0 4px rgba(40, 92, 196, .12);
    }
}

/* The AI chapter occasionally breaks into a short RGB signal glitch after its
   typewriter has finished. The title card returns for a beat, then the normal
   copy settles back in without changing the section's layout. */
@keyframes rp-ai-rgb-glitch-heading {
    0%, 100% {
        clip-path: inset(0);
        filter: none;
        text-shadow: none;
        transform: none;
    }
    8% {
        clip-path: inset(8% 0 72% 0);
        text-shadow: -3px 0 rgba(255, 49, 96, .8), 3px 0 rgba(34, 215, 255, .8);
        transform: translate3d(-1px, 0, 0);
    }
    16% {
        clip-path: inset(62% 0 12% 0);
        text-shadow: 3px 0 rgba(255, 49, 96, .72), -3px 0 rgba(34, 215, 255, .72);
        transform: translate3d(1px, 0, 0);
    }
    24% {
        clip-path: inset(35% 0 38% 0);
        text-shadow: -2px 0 rgba(255, 49, 96, .62), 2px 0 rgba(34, 215, 255, .62);
        transform: none;
    }
    32%, 58% {
        clip-path: inset(0);
        text-shadow: none;
        transform: none;
    }
    66% {
        clip-path: inset(74% 0 6% 0);
        text-shadow: -2px 0 rgba(255, 49, 96, .68), 2px 0 rgba(34, 215, 255, .68);
        transform: skewX(-1deg);
    }
    74% {
        clip-path: inset(18% 0 58% 0);
        text-shadow: 2px 0 rgba(255, 49, 96, .68), -2px 0 rgba(34, 215, 255, .68);
        transform: skewX(1deg);
    }
    84% {
        clip-path: inset(0);
        text-shadow: none;
        transform: none;
    }
}

@keyframes rp-ai-rgb-glitch-copy {
    0%, 100% {
        clip-path: inset(0);
        text-shadow: none;
        transform: translateY(0);
    }
    12% {
        clip-path: inset(16% 0 64% 0);
        text-shadow: -2px 0 rgba(255, 49, 96, .64), 2px 0 rgba(34, 215, 255, .64);
        transform: translate3d(1px, 0, 0);
    }
    22% {
        clip-path: inset(66% 0 12% 0);
        text-shadow: 2px 0 rgba(255, 49, 96, .58), -2px 0 rgba(34, 215, 255, .58);
        transform: translate3d(-1px, 0, 0);
    }
    34%, 62% {
        clip-path: inset(0);
        text-shadow: none;
        transform: translateY(0);
    }
    72% {
        clip-path: inset(42% 0 34% 0);
        text-shadow: -2px 0 rgba(255, 49, 96, .54), 2px 0 rgba(34, 215, 255, .54);
        transform: translate3d(1px, 0, 0);
    }
    82% {
        clip-path: inset(0);
        text-shadow: none;
        transform: translateY(0);
    }
}

@keyframes rp-ai-glitch-mark {
    0%, 15%, 74%, 100% {
        opacity: 0;
        transform: scale(.985);
        text-shadow: none;
    }
    20%, 31% {
        opacity: 1;
        transform: scale(1);
        text-shadow: -4px 0 rgba(255, 49, 96, .82), 4px 0 rgba(34, 215, 255, .82);
    }
    38%, 57% {
        opacity: .88;
        transform: scale(1.008);
        text-shadow: 3px 0 rgba(255, 49, 96, .7), -3px 0 rgba(34, 215, 255, .7);
    }
    63% {
        opacity: 0;
        transform: scale(1.015);
        text-shadow: none;
    }
}

html body.light-theme .ai-zone-intro.is-ai-rgb-glitching .ai-zone-heading h2 {
    animation: rp-ai-rgb-glitch-heading 2.2s steps(1, end) both;
    isolation: isolate;
    will-change: clip-path, text-shadow, transform;
}

html body.light-theme .ai-zone-intro.is-ai-rgb-glitching .ai-zone-heading p {
    animation: rp-ai-rgb-glitch-copy 2.2s steps(1, end) both;
    will-change: clip-path, text-shadow, transform;
}

html body.light-theme .ai-zone-intro.is-typewriter-prepared.is-ai-copy-stage.is-ai-rgb-glitching .ai-zone-mark {
    visibility: visible !important;
    animation: rp-ai-glitch-mark 2.2s steps(1, end) both;
    will-change: opacity, text-shadow, transform;
}

@media (max-width: 620px) {
    html body.light-theme .ai-zone-intro .ai-zone-heading {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 16px !important;
    }

    html body.light-theme .ai-zone-intro.is-typewriter-prepared.is-ai-copy-stage .ai-zone-mark {
        transform: translateY(calc(-50% + .52rem)) scale(.17);
    }
}

@media (prefers-reduced-motion: reduce) {
    html body.light-theme .ai-zone-intro.is-typewriter-prepared .ai-zone-mark {
        display: none !important;
    }

    html body.light-theme .ai-zone-intro.is-typewriter-prepared .ai-zone-persistent-mark,
    html body.light-theme .ai-zone-intro.is-typewriter-prepared.is-ai-copy-stage .ai-zone-persistent-mark {
        visibility: visible;
        opacity: 1;
        transform: none;
        transition: none;
    }

    html body.light-theme .ai-zone-intro.is-typewriter-prepared .ai-zone-kicker {
        opacity: 1;
        transform: none;
        transition: none;
    }

    html body.light-theme .ai-zone-intro .ai-type-cursor {
        display: none;
        animation: none;
    }

    html body.light-theme .ai-zone-intro.is-typewriter-prepared .ai-zone-heading p {
        opacity: 1;
        transform: none;
        transition: none;
    }

    html body.light-theme .ai-zone-intro.is-ai-rgb-glitching .ai-zone-heading h2,
    html body.light-theme .ai-zone-intro.is-ai-rgb-glitching .ai-zone-heading p,
    html body.light-theme .ai-zone-intro.is-ai-rgb-glitching .ai-zone-mark {
        animation: none !important;
        clip-path: none !important;
        filter: none !important;
        text-shadow: none !important;
        transform: none !important;
    }

    html body.light-theme .ai-zone-intro.is-typewriter-prepared.is-ai-copy-stage.is-ai-rgb-glitching .ai-zone-mark {
        visibility: hidden !important;
        opacity: 0 !important;
    }
}

/* Portfolio chapter: type the heading and its descriptor once they enter view. */
html body.light-theme #showreel .section-header.is-portfolio-typewriter-prepared .portfolio-display-title {
    min-height: .94em;
}

html body.light-theme #showreel .section-header.is-portfolio-typewriter-prepared #showreel-title {
    min-height: 1.3em;
}

html body.light-theme #showreel .portfolio-type-line {
    display: inline;
}

html body.light-theme #showreel .portfolio-type-text {
    white-space: pre-wrap;
}

html body.light-theme #showreel .portfolio-type-cursor {
    display: inline-block;
    width: .055em;
    height: .8em;
    margin-left: .065em;
    background: currentColor;
    opacity: 0;
    vertical-align: -.035em;
}

html body.light-theme #showreel #showreel-title .portfolio-type-cursor {
    width: .075em;
    height: .78em;
    margin-left: .12em;
}

html body.light-theme #showreel .portfolio-type-cursor.is-visible {
    opacity: 1;
}

html body.light-theme #showreel .portfolio-type-cursor.is-idle {
    animation: rp-portfolio-cursor-blink .82s step-end infinite;
}

html body.light-theme #showreel .portfolio-type-cursor.is-fading {
    opacity: 0;
    animation: none;
    transition: opacity 360ms ease;
}

@keyframes rp-portfolio-cursor-blink {
    0%, 46% { opacity: 1; }
    47%, 100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    html body.light-theme #showreel .portfolio-type-cursor {
        display: none;
        animation: none;
    }
}

/* Classic montage chapter: continue the same quiet typewriter entrance as AI. */
html body.light-theme #showreel #long-form .category-top.is-classic-typewriter-prepared .classic-type-line {
    display: block;
    min-height: 1em;
}

html body.light-theme #showreel #long-form .classic-type-text {
    white-space: pre-wrap;
}

html body.light-theme #showreel #long-form .classic-format-phrase {
    display: inline-block;
    opacity: 0;
    transform: translateY(.18em);
    transition: opacity 700ms ease, transform 700ms ease;
}

html body.light-theme #showreel #long-form .classic-format-phrase.is-visible {
    opacity: 1;
    transform: translateY(0);
}

html body.light-theme #showreel #long-form .classic-type-cursor {
    display: inline-block;
    width: .055em;
    height: .8em;
    margin-left: .06em;
    background: currentColor;
    opacity: 0;
    vertical-align: -.035em;
}

html body.light-theme #showreel #long-form .classic-type-cursor.is-visible {
    opacity: 1;
}

html body.light-theme #showreel #long-form .classic-type-cursor.is-idle {
    animation: rp-classic-cursor-blink .82s step-end infinite;
}

html body.light-theme #showreel #long-form .classic-type-cursor.is-fading {
    opacity: 0;
    animation: none;
    transition: opacity 400ms ease;
}

html body.light-theme #showreel #long-form .category-top.is-classic-typewriter-prepared .long-form-formats {
    opacity: .92;
}

@keyframes rp-classic-cursor-blink {
    0%, 46% { opacity: 1; }
    47%, 100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    html body.light-theme #showreel #long-form .classic-type-cursor {
        display: none;
        animation: none;
    }

    html body.light-theme #showreel #long-form .classic-format-phrase {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Tools chapter: type the two-line heading, then let the supporting copy settle in. */
html body.light-theme #ai-model-directory .ai-section-heading.is-tools-typewriter-prepared #ai-tools-title {
    min-height: 2em;
}

html body.light-theme #ai-model-directory .tools-type-line {
    display: block;
    min-height: 1em;
}

html body.light-theme #ai-model-directory .tools-type-line.is-muted {
    color: var(--theme-muted, #7488a0);
}

html body.light-theme #ai-model-directory .tools-type-text {
    white-space: pre-wrap;
}

html body.light-theme #ai-model-directory .tools-type-cursor {
    display: inline-block;
    width: .055em;
    height: .8em;
    margin-left: .06em;
    background: currentColor;
    opacity: 0;
    vertical-align: -.035em;
}

html body.light-theme #ai-model-directory .tools-type-cursor.is-visible {
    opacity: 1;
}

html body.light-theme #ai-model-directory .tools-type-cursor.is-idle {
    animation: rp-tools-cursor-blink .82s step-end infinite;
}

html body.light-theme #ai-model-directory .tools-type-cursor.is-fading {
    opacity: 0;
    animation: none;
    transition: opacity 400ms ease;
}

html body.light-theme #ai-model-directory .ai-section-heading.is-tools-typewriter-prepared > p {
    opacity: 0;
    transform: translateY(12px);
    transition:
        opacity 1100ms cubic-bezier(.22, .72, .18, 1),
        transform 1100ms cubic-bezier(.22, .72, .18, 1);
}

html body.light-theme #ai-model-directory .ai-section-heading.is-tools-typewriter-prepared.is-tools-copy-visible > p {
    opacity: 1;
    transform: translateY(0);
}

@keyframes rp-tools-cursor-blink {
    0%, 46% { opacity: 1; }
    47%, 100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    html body.light-theme #ai-model-directory .tools-type-cursor {
        display: none;
        animation: none;
    }

    html body.light-theme #ai-model-directory .ai-section-heading.is-tools-typewriter-prepared > p {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Subpage opening: reveal the category title first, then let its supporting
   content and the first reading surface settle into view. */
body.ai-page .ai-hero.rp-title-sequence-ready .rp-page-title-char,
body.guide-page .guide-hero.rp-title-sequence-ready .rp-page-title-char {
    display: inline-block;
    opacity: 0;
    transform: translate3d(0, .2em, 0) scale(.97);
    filter: blur(3px);
    transition: opacity 260ms cubic-bezier(.2, .75, .25, 1),
        transform 420ms cubic-bezier(.2, .75, .25, 1),
        filter 420ms ease;
    will-change: opacity, transform, filter;
}

body.ai-page .ai-hero.rp-title-sequence-ready .rp-page-title-char.is-visible,
body.guide-page .guide-hero.rp-title-sequence-ready .rp-page-title-char.is-visible {
    opacity: 1;
    transform: none;
    filter: blur(0);
}

body.ai-page .ai-hero.rp-title-sequence-ready .rp-page-title-cursor,
body.guide-page .guide-hero.rp-title-sequence-ready .rp-page-title-cursor {
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    pointer-events: none;
    width: .045em;
    height: .78em;
    margin: 0;
    border-radius: 999px;
    background: currentColor;
    opacity: 0;
    vertical-align: -.08em;
    transition: opacity 260ms ease;
}

body.ai-page .ai-hero.rp-title-sequence-ready .rp-page-title-cursor.is-visible,
body.guide-page .guide-hero.rp-title-sequence-ready .rp-page-title-cursor.is-visible {
    opacity: .82;
}

body.ai-page .ai-hero.rp-title-sequence-ready .rp-page-title-cursor.is-idle,
body.guide-page .guide-hero.rp-title-sequence-ready .rp-page-title-cursor.is-idle {
    animation: rp-page-title-cursor-blink .9s step-end infinite;
}

body.ai-page .ai-hero.rp-title-sequence-ready .rp-page-title-cursor.is-fading,
body.guide-page .guide-hero.rp-title-sequence-ready .rp-page-title-cursor.is-fading {
    opacity: 0;
}

body.ai-page .ai-hero.rp-title-sequence-ready .ai-hero-description,
body.ai-page .ai-hero.rp-title-sequence-ready .ai-hero-actions,
body.guide-page .guide-hero.rp-title-sequence-ready .guide-lead,
body.guide-page .guide-hero.rp-title-sequence-ready .guide-route {
    opacity: 0;
    transform: translate3d(0, 16px, 0);
    transition: opacity 760ms cubic-bezier(.22, .72, .18, 1),
        transform 760ms cubic-bezier(.22, .72, .18, 1);
}

body.ai-page .ai-hero.rp-title-sequence-ready.is-title-complete .ai-hero-description,
body.ai-page .ai-hero.rp-title-sequence-ready.is-title-complete .ai-hero-actions,
body.guide-page .guide-hero.rp-title-sequence-ready.is-title-complete .guide-lead,
body.guide-page .guide-hero.rp-title-sequence-ready.is-title-complete .guide-route {
    opacity: 1;
    transform: none;
}

body.ai-page .ai-hero.rp-title-sequence-ready .ai-hero-actions {
    transition-delay: 130ms;
}

body.guide-page .guide-hero.rp-title-sequence-ready .guide-route {
    transition-delay: 150ms;
}

body.ai-page .ai-hero.rp-title-sequence-ready + .ai-page-showcase,
body.guide-page .guide-hero.rp-title-sequence-ready + .guide-shell {
    opacity: 0;
    transform: translate3d(0, 22px, 0);
    transition: opacity 900ms cubic-bezier(.22, .72, .18, 1),
        transform 900ms cubic-bezier(.22, .72, .18, 1);
}

body.ai-page .ai-hero.rp-title-sequence-ready.is-content-released + .ai-page-showcase,
body.guide-page .guide-hero.rp-title-sequence-ready.is-content-released + .guide-shell {
    opacity: 1;
    transform: none;
}

@keyframes rp-page-title-cursor-blink {
    0%, 46% { opacity: .82; }
    47%, 100% { opacity: .18; }
}

@media (prefers-reduced-motion: reduce) {
    body.ai-page .ai-hero.rp-title-sequence-ready .rp-page-title-char,
    body.guide-page .guide-hero.rp-title-sequence-ready .rp-page-title-char,
    body.ai-page .ai-hero.rp-title-sequence-ready .ai-hero-description,
    body.ai-page .ai-hero.rp-title-sequence-ready .ai-hero-actions,
    body.guide-page .guide-hero.rp-title-sequence-ready .guide-lead,
    body.guide-page .guide-hero.rp-title-sequence-ready .guide-route,
    body.ai-page .ai-hero.rp-title-sequence-ready + .ai-page-showcase,
    body.guide-page .guide-hero.rp-title-sequence-ready + .guide-shell {
        opacity: 1;
        transform: none;
        filter: none;
        transition: none;
    }

    body.ai-page .ai-hero.rp-title-sequence-ready .rp-page-title-cursor,
    body.guide-page .guide-hero.rp-title-sequence-ready .rp-page-title-cursor {
        display: none;
        animation: none;
    }
}

/* The head bootstrap prepares these states before the first paint. Without
   JavaScript, reduced motion or when following a deep link, content is visible. */
html.rp-subpage-opening body.ai-page .ai-hero:not(.rp-title-sequence-ready) :is(h1, .ai-hero-description, .ai-hero-actions),
html.rp-subpage-opening body.guide-page .guide-hero:not(.rp-title-sequence-ready) :is(h1, .guide-lead, .guide-route),
html.rp-subpage-opening body.ai-page .ai-hero:not(.rp-title-sequence-ready) + .ai-page-showcase,
html.rp-subpage-opening body.guide-page .guide-hero:not(.rp-title-sequence-ready) + .guide-shell {
    opacity: 0;
}
body:is(.ai-page, .guide-page) .rp-page-title-word {
    display: inline-block;
    white-space: nowrap;
}
body:is(.ai-page, .guide-page) .rp-title-sequence-ready .rp-page-title-char.is-space {
    display: inline;
    white-space: normal;
}

/* The AI film rail enters promptly while its title continues to animate. */
body.ai-page .ai-hero.rp-title-sequence-ready + .ai-page-showcase {
    transition-duration: 260ms;
}

/* The title caret follows glyph layout without taking up a text slot. */
body:is(.ai-page, .guide-page) .rp-page-title-tracked {position:relative;}
