/* assets/video-player.css */
/* Media is a dark canvas in both page themes. White controls and the site's blue accent
   remain legible over arbitrary footage. Deliberately scoped away from page layout. */
html body.light-theme .rp-video-player {
    --rp-player-accent:#a6c4ff; --rp-player-ink:#f8faff;
    --rp-progress:0%; --rp-buffer:0%; --rp-volume:60%;
    isolation:isolate; color:var(--rp-player-ink); background:#090c11;
    font-family:var(--editorial-font,Manrope,sans-serif); -webkit-tap-highlight-color:transparent;
}
html[data-theme="light"] body.light-theme .rp-video-player { --rp-player-accent:#b8d0ff; }
html body.light-theme .rp-video-player:focus-visible { outline:2px solid var(--theme-accent,#285cc4)!important;outline-offset:5px; }
html body.light-theme .rp-video-player > .rp-full-video { display:block;width:100%;height:100%;pointer-events:auto; }
html body.light-theme .rp-video-player.rp-has-started > .rp-full-video { object-fit:contain!important;transform:none!important;opacity:1!important; }
html body.light-theme .rp-video-player > .rp-preview-video,
html body.light-theme .external-preview > .rp-preview-video {
    position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:1;
    opacity:0!important;pointer-events:none;transition:opacity 200ms ease!important;
}
html body.light-theme .rp-video-player.rp-previewing > .rp-preview-video,
html body.light-theme .external-preview.rp-previewing > .rp-preview-video { opacity:1!important; }
html body.light-theme .rp-player-shade { position:absolute;inset:35% 0 0;z-index:2;pointer-events:none;background:linear-gradient(transparent,rgba(7,11,18,.15) 40%,rgba(7,11,18,.82));opacity:0;transition:opacity 200ms ease; }
html body.light-theme .rp-has-started .rp-player-shade { opacity:1; }
html body.light-theme .rp-video-player .rp-player-center,
html body.light-theme .external-preview .external-play,
html body.light-theme .external-preview:hover .external-play,
html body.light-theme .external-preview:focus-visible .external-play {
    position:absolute;left:50%;top:50%;z-index:4;display:grid!important;place-items:center;
    width:58px!important;height:58px!important;min-width:44px;min-height:44px;padding:0;
    background:#fff!important;color:#191c20!important;opacity:1!important;
    border:1px solid #fff!important;border-radius:50%!important;
    box-shadow:0 4px 24px #00000029!important;filter:none!important;backdrop-filter:none!important;
    transform:translate(-50%,-50%)!important;translate:none!important;
    transition:scale 180ms ease,box-shadow 180ms ease!important;cursor:pointer;
}
html body.light-theme .rp-video-player .rp-player-center::before,
html body.light-theme .external-preview .external-play::before {
    content:"";position:absolute;inset:-6px!important;border:1px solid #ffffff73!important;border-radius:50%!important;pointer-events:none;
}
html body.light-theme .rp-video-player .rp-player-center:hover,
html body.light-theme .external-preview:hover .external-play { scale:1.045;box-shadow:0 5px 28px #00000040!important; }
html body.light-theme .rp-player-center svg,
html body.light-theme .external-preview .external-play svg { width:23px!important;height:23px!important;color:#191c20!important;fill:currentColor!important;transform:translateX(1px)!important; }
html body.light-theme .rp-video-player .rp-player-center[hidden] { display:none!important; }
html body.light-theme .rp-player-dock {
    position:absolute;left:10px;right:10px;bottom:10px;z-index:5;
    padding:0 7px 3px;min-width:0;max-width:calc(100% - 20px);
    color:var(--rp-player-ink);background:rgba(16,22,32,.88);
    border:1px solid #ffffff26;border-radius:8px!important;
    backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);
    box-shadow:0 4px 18px #0000001f;
    opacity:0;visibility:hidden;transform:translateY(5px);
    transition:opacity 180ms ease,transform 180ms ease,visibility 180ms;
}
html body.light-theme .rp-has-started .rp-player-dock {opacity:1;visibility:visible;transform:none;}
html body.light-theme .rp-video-player.rp-controls-idle .rp-player-dock {opacity:0;visibility:hidden;transform:translateY(5px);pointer-events:none;}
html body.light-theme .rp-video-player.rp-controls-idle .rp-player-shade {opacity:0;}
html body.light-theme .rp-player-scrub {position:relative;display:block;height:26px;margin:0 6px;cursor:pointer;}
html body.light-theme .rp-player-track {position:absolute;top:12px;left:0;right:0;height:3px;overflow:hidden;border-radius:2px!important;background:#ffffff30;pointer-events:none;}
html body.light-theme .rp-player-buffer {position:absolute;inset:0 auto 0 0;width:var(--rp-buffer);background:#ffffff4d;}
html body.light-theme .rp-player-progress {position:absolute;inset:0 auto 0 0;width:var(--rp-progress);background:var(--rp-player-accent);}
html body.light-theme .rp-video-player .rp-player-seek {
    -webkit-appearance:none;appearance:none;position:relative;display:block;width:100%;height:26px;
    margin:0;padding:0;outline:none;background:transparent!important;border:0;box-shadow:none;cursor:pointer;touch-action:none;
}
html body.light-theme .rp-player-seek::-webkit-slider-runnable-track {height:3px;background:transparent;border:0;}
html body.light-theme .rp-player-seek::-moz-range-track {height:3px;background:transparent;border:0;}
html body.light-theme .rp-player-seek::-webkit-slider-thumb {-webkit-appearance:none;appearance:none;width:11px;height:11px;margin-top:-4px;border:0;border-radius:50%!important;background:#fff;box-shadow:0 1px 5px #0006;}
html body.light-theme .rp-player-seek::-moz-range-thumb {width:11px;height:11px;border:0;border-radius:50%!important;background:#fff;box-shadow:0 1px 5px #0006;}
html body.light-theme .rp-player-seek:disabled {opacity:.4;cursor:default;}
html body.light-theme .rp-player-row {display:flex;align-items:center;gap:2px;min-width:0;height:40px;}
html body.light-theme .rp-video-player .rp-player-button,
html body.light-theme .rp-video-player .rp-player-speed > summary {
    display:grid;place-items:center;flex:0 0 40px;width:40px;height:40px;min-width:40px;min-height:40px;
    border:0;border-radius:5px!important;padding:0;margin:0;background:transparent;color:var(--rp-player-ink)!important;
    line-height:1;font-size:12px;letter-spacing:0;cursor:pointer;box-shadow:none;
    transition:background 150ms ease,color 150ms ease;
}
html body.light-theme .rp-video-player .rp-player-button:hover,
html body.light-theme .rp-video-player .rp-player-speed > summary:hover {background:#ffffff15;color:var(--rp-player-accent)!important;}
html body.light-theme .rp-video-player .rp-player-button svg {display:block;width:19px;height:19px;pointer-events:none;}
html body.light-theme .rp-video-player :is(button,input,summary,a):focus-visible {outline:2px solid #a6c4ff!important;outline-offset:1px!important;}
html body.light-theme .rp-player-time {flex:0 0 auto;white-space:nowrap!important;font-size:11px!important;font-weight:500;line-height:1.3;letter-spacing:.01em;color:#fff!important;font-variant-numeric:tabular-nums;}
html body.light-theme .rp-time-duration {color:#c4cfdf!important;}
html body.light-theme .rp-player-spacer {flex:1 1 4px;min-width:0;}
html body.light-theme .rp-player-volume {display:flex;align-items:center;flex:0 0 auto;gap:2px;}
html body.light-theme .rp-video-player .rp-player-volume-range {
    -webkit-appearance:none;appearance:none;width:56px;height:32px;margin:0 9px 0 0;padding:0;background:transparent;border:0;cursor:pointer;accent-color:var(--rp-player-accent);touch-action:none;
}
html body.light-theme .rp-player-volume-range::-webkit-slider-runnable-track {height:3px;border-radius:2px;background:linear-gradient(to right,var(--rp-player-accent) var(--rp-volume),#ffffff40 var(--rp-volume));}
html body.light-theme .rp-player-volume-range::-moz-range-track {height:3px;background:#ffffff40;}
html body.light-theme .rp-player-volume-range::-moz-range-progress {height:3px;background:var(--rp-player-accent);}
html body.light-theme .rp-player-volume-range::-webkit-slider-thumb {-webkit-appearance:none;width:9px;height:9px;margin-top:-3px;border-radius:50%;background:#fff;border:0;}
html body.light-theme .rp-player-volume-range::-moz-range-thumb {width:9px;height:9px;border-radius:50%;background:#fff;border:0;}
html body.light-theme .rp-player-speed {position:relative;flex:0 0 auto;margin:0;padding:0;border:0;background:none;}
html body.light-theme .rp-player-speed > summary {list-style:none;font-variant-numeric:tabular-nums;}
html body.light-theme .rp-player-speed > summary::-webkit-details-marker {display:none;}
html body.light-theme .rp-player-speed-options {position:absolute;right:0;bottom:calc(100% + 8px);width:80px;display:grid;gap:2px;padding:5px;background:#171f2d;border:1px solid #ffffff30;border-radius:7px!important;box-shadow:0 8px 28px #0005;}
html body.light-theme .rp-player-speed:not([open]) .rp-player-speed-options {display:none;}
html body.light-theme .rp-player-speed-options button {height:36px;width:100%;padding:0;border:0;background:none;color:#f3f6fb;font:500 12px/1 var(--editorial-font);border-radius:4px!important;cursor:pointer;}
html body.light-theme .rp-player-speed-options button[aria-pressed="true"],html body.light-theme .rp-player-speed-options button:hover {background:#ffffff12;color:var(--rp-player-accent);}
html body.light-theme .rp-player-error-message {position:absolute;left:12px;right:12px;top:12px;z-index:7;padding:12px;background:#152133f2;border:1px solid #b4c9e76b;border-radius:6px!important;font:500 12px/1.6 var(--editorial-font);color:#fff;}
html body.light-theme .rp-player-error-message[hidden] {display:none!important;}
html body.light-theme .rp-player-error-message > div {display:flex;flex-wrap:wrap;gap:8px 12px;margin-top:8px;}
html body.light-theme .rp-player-error-message :is(button,a) {color:#c5daff;border:0;background:transparent;padding:4px 0;text-decoration:underline;cursor:pointer;font-size:12px;}
html body.light-theme .rp-player-loading {position:absolute;left:50%;top:50%;margin:-15px 0 0 -15px;z-index:4;width:30px;height:30px;border:2px solid #ffffff40;border-top-color:#fff;border-radius:50%!important;animation:rp-player-spin 900ms linear infinite;pointer-events:none;}
html body.light-theme .rp-player-loading[hidden] {display:none!important;}
@keyframes rp-player-spin {to{transform:rotate(1turn)}}
html body.light-theme .rp-player-small .rp-player-volume-range {display:none;}
html body.light-theme .rp-player-tiny .rp-player-volume,
html body.light-theme .rp-player-tiny .rp-player-speed,
html body.light-theme .rp-player-tiny .rp-time-duration {display:none;}
html body.light-theme .rp-player-tiny .rp-player-dock {left:5px;right:5px;bottom:6px;max-width:calc(100% - 10px);padding-inline:2px;}
html body.light-theme .rp-player-tiny .rp-player-time {font-size:10px!important;}
html body.light-theme .rp-player-tiny .rp-player-center {width:48px!important;height:48px!important;}
html body.light-theme .rp-native-fallback .rp-player-dock,
html body.light-theme .rp-native-fallback .rp-player-shade,
html body.light-theme .rp-native-fallback .rp-player-center {display:none!important;}
/* Fullscreen targets the media frame, never the card's caption. */
html body.light-theme .rp-video-player:fullscreen {position:fixed!important;inset:0!important;display:block!important;width:100vw!important;height:100dvh!important;max-width:none!important;max-height:none!important;aspect-ratio:auto!important;border-radius:0!important;background:#05070b!important;}
html body.light-theme .rp-video-player:-webkit-full-screen {position:fixed!important;inset:0!important;width:100vw!important;height:100vh!important;max-width:none!important;max-height:none!important;aspect-ratio:auto!important;background:#05070b!important;}
html body.light-theme .rp-video-player:fullscreen > .rp-full-video {position:absolute!important;inset:0!important;width:100%!important;height:100%!important;max-height:none!important;object-fit:contain!important;}
html body.light-theme .rp-video-player:fullscreen .rp-player-dock {left:max(16px,env(safe-area-inset-left));right:max(16px,env(safe-area-inset-right));bottom:max(16px,env(safe-area-inset-bottom));margin-inline:auto;max-width:900px;}
/* The dialog remains proportional to the clip on short mobile screens. */
html body.light-theme .rp-dialog-player {position:relative;display:block;width:min(440px,calc((100dvh - 165px)*9/16),calc(100vw - 56px));max-width:100%;aspect-ratio:9/16;margin-inline:auto;border-radius:4px;overflow:hidden;}
html body.light-theme .reel-dialog .rp-dialog-player > video {display:block;position:absolute;inset:0;width:100%;height:100%;min-width:0;max-width:100%;max-height:none;aspect-ratio:auto;object-fit:contain;}
html body.light-theme .reel-dialog-heading {max-width:440px;}
html body.light-theme .reel-dialog-heading h2 {overflow-wrap:anywhere;}
html body.light-theme .reel-dialog-close {min-width:40px;min-height:40px;border-radius:4px!important;}
html body.light-theme [data-reel-showcase="portfolio"] .reel-card {width:var(--rp-home-reel-width,clamp(225px,19vw,306px));}
@media(max-width:980px) {
    html body.light-theme .rp-player-button,html body.light-theme .rp-player-speed > summary {width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;flex-basis:44px!important;}
    html body.light-theme .rp-player-row {height:44px;gap:0;}
    html body.light-theme .rp-player-scrub,html body.light-theme .rp-video-player .rp-player-seek {height:30px;}
    html body.light-theme .rp-player-track {top:14px;}
    html body.light-theme .rp-player-small .rp-time-duration {display:none;}
    html body.light-theme .rp-player-dock {left:7px;right:7px;bottom:7px;max-width:calc(100% - 14px);padding:0 3px 2px;}
    html body.light-theme .rp-player-speed-options button {min-height:40px;}
    html body.light-theme .rp-player-center {width:54px!important;height:54px!important;}
    html body.light-theme [data-reel-showcase="portfolio"] .reel-card {width:var(--rp-home-reel-width,238px);}
}
@media(max-width:620px) {html body.light-theme [data-reel-showcase="portfolio"] .reel-card {width:var(--rp-home-reel-width,210px);}}
@media(prefers-reduced-motion:reduce) {
    html body.light-theme :is(.rp-player-dock,.rp-player-shade,.rp-player-center,.rp-preview-video,.external-play) {transition:none!important;}
    html body.light-theme .rp-player-loading {animation:none;}
}
@media(min-width:1700px) {html body.light-theme [data-reel-showcase="portfolio"] .reel-card {width:var(--rp-home-reel-width,clamp(19rem,14vw,24rem));}}
@media(min-width:981px) and (max-width:1000px) {html body.light-theme [data-reel-showcase="portfolio"] .reel-card {width:var(--rp-home-reel-width,238px);}}
@media(min-width:621px) and (max-width:700px) {html body.light-theme [data-reel-showcase="portfolio"] .reel-card {width:var(--rp-home-reel-width,210px);}}
html body.light-theme .rp-player-volume-range::-webkit-slider-thumb {border-radius:50%!important;}
html body.light-theme .rp-player-volume-range::-moz-range-thumb {border-radius:50%!important;}
/* A real pause/play control is essential when motion starts disabled by system settings. */
@media(max-height:560px) and (orientation:landscape) {html body.light-theme .rp-dialog-player {width:min(640px,calc(100vw - 56px));height:calc(100dvh - 142px);aspect-ratio:auto;}}
/* Very small two-column thumbnails still keep two 44px targets and a usable scrub bar. */
html body.light-theme .rp-player-tiny .rp-player-dock {padding-inline:0;}
html body.light-theme .rp-player-tiny .rp-player-row {gap:0;}

html body.light-theme .rp-video-player .rp-player-quality {
    display:grid;place-items:center;flex:0 0 44px;width:44px;max-width:44px;height:36px;min-height:36px;
    margin:0 2px;padding:0;background:#ffffff08;color:#f8faff;border:1px solid #ffffff26;
    border-radius:6px!important;font:600 11px/1 var(--editorial-font,Manrope,sans-serif);
    letter-spacing:.04em;cursor:pointer;transition:background 150ms ease,border-color 150ms ease,color 150ms ease;
}
html body.light-theme .rp-video-player .rp-player-quality[aria-pressed="true"] {
    background:#a6c4ff18;color:#c8dcff;border-color:#a6c4ff50;
}
html body.light-theme .rp-video-player .rp-player-quality:hover {background:#ffffff1a;border-color:#ffffff70;}
html body.light-theme .rp-video-player .rp-player-quality[hidden] {display:none!important;}
html body.light-theme .rp-video-player .rp-player-quality:focus-visible {outline:2px solid #a6c4ff;outline-offset:1px;}
@media(max-width:980px) {html body.light-theme .rp-video-player .rp-player-quality {height:44px;min-height:44px;}}
html body.light-theme .rp-video-player.rp-player-small .rp-player-speed {display:none;}

/* Mobile launches use a dedicated fullscreen canvas; the document is never the player. */
html.rp-mobile-video-open {overflow:hidden!important;overscroll-behavior:none;}
html body.light-theme dialog.rp-mobile-viewer {
    position:fixed!important;inset:0!important;width:100vw!important;height:100dvh!important;
    min-width:0!important;max-width:none!important;max-height:none!important;margin:0!important;padding:0!important;
    border:0!important;border-radius:0!important;background:#05070b!important;color:#fff!important;
    overflow:hidden!important;box-sizing:border-box;overscroll-behavior:contain;
}
html body.light-theme dialog.rp-mobile-viewer::backdrop {background:#05070b;}
html body.light-theme .rp-mobile-player {
    position:relative!important;inset:auto!important;display:block!important;width:100%!important;height:100%!important;
    max-width:none!important;max-height:none!important;margin:0!important;border:0!important;border-radius:0!important;
    aspect-ratio:auto!important;overflow:hidden!important;background:#05070b!important;
}
html body.light-theme .rp-mobile-player > .rp-full-video {
    position:absolute!important;inset:0!important;width:100%!important;height:100%!important;
    max-width:none!important;max-height:none!important;object-fit:contain!important;transform:none!important;
}
html body.light-theme .rp-mobile-player .rp-player-dock {
    left:max(10px,env(safe-area-inset-left));right:max(10px,env(safe-area-inset-right));
    bottom:max(14px,env(safe-area-inset-bottom));max-width:900px;margin-inline:auto;
}
html body.light-theme .rp-mobile-player > .rp-mobile-close {
    position:absolute;right:max(12px,env(safe-area-inset-right));top:max(12px,env(safe-area-inset-top));
    z-index:10;display:grid;place-items:center;width:44px;height:44px;min-width:44px;min-height:44px;
    padding:0;border:1px solid #ffffff35;border-radius:50%!important;background:#111722bb;color:#fff;
    font:300 30px/1 Arial,sans-serif;cursor:pointer;backdrop-filter:blur(10px);
}
html body.light-theme .rp-mobile-external-frame {position:absolute;inset:0;width:100%;height:100%;border:0;background:#05070b;}
html body.light-theme .rp-mobile-player > [hidden] {display:none!important;}
html body.light-theme .rp-mobile-external :is(.rp-player-dock,.rp-player-center,.rp-player-shade,.rp-player-loading) {display:none!important;}

/* 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;}

/* assets/ai-zone-compact.css */
/* A tighter transition between the AI chapter intro and its work gallery. */
html[data-theme] body.light-theme .ai-zone-intro {
    padding-bottom: clamp(1.1rem, 1.8vw, 1.6rem) !important;
}

html[data-theme] body.light-theme .ai-zone #ai-reels {
    padding-top: clamp(1rem, 1.8vw, 1.5rem) !important;
}

html[data-theme] body.light-theme #ai-reels .ai-gallery-header {
    margin-bottom: clamp(1.25rem, 2vw, 2rem) !important;
    padding-top: clamp(.9rem, 1.6vw, 1.35rem) !important;
    padding-bottom: clamp(1.1rem, 1.8vw, 1.5rem) !important;
}

/* Give the chapter mark a calm hold, then let it leave with a soft bloom. */
html[data-theme] body.light-theme .ai-zone-intro.is-typewriter-prepared .ai-zone-mark {
    filter: blur(0);
    transition: opacity 520ms ease, transform 820ms cubic-bezier(.2, .72, .18, 1), filter 760ms ease !important;
}

html[data-theme] body.light-theme .ai-zone-intro.is-typewriter-prepared.is-ai-splash-exiting .ai-zone-mark {
    filter: blur(5px);
    transform: scale(1.1) translateY(-.12rem);
}

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

/* assets/about-qa.css */
/* Homepage biography: an editorial question-and-answer section. */
body.light-theme #about.about-qa-section {
    position: relative;
    overflow: clip;
    padding: clamp(82px, 8vw, 148px) 0 !important;
    border-top: 0;
    border-bottom: 1px solid var(--theme-line);
    background:
        radial-gradient(circle at 8% 9%, rgba(40, 92, 196, .10), transparent 27rem),
        linear-gradient(135deg, #f4f6f9 0%, #eef3f9 54%, #f8f9fb 100%) !important;
}

body.light-theme #about.about-qa-section::before {
    content: "Q/A";
    position: absolute;
    right: clamp(-1.6rem, 2vw, 2rem);
    top: clamp(-2rem, -1vw, -.5rem);
    color: rgba(40, 92, 196, .045);
    font-size: clamp(9rem, 20vw, 23rem);
    font-weight: 700;
    letter-spacing: -.1em;
    line-height: .8;
    pointer-events: none;
    user-select: none;
}

body.light-theme #about .about-qa-shell {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(270px, .72fr) minmax(0, 1.28fr);
    gap: clamp(60px, 8vw, 150px);
    align-items: start;
}

body.light-theme #about .about-qa-intro {
    position: sticky;
    top: 132px;
}

body.light-theme #about .about-qa-intro .section-kicker {
    margin: 0 0 26px;
    color: var(--theme-accent) !important;
}

body.light-theme #about .about-qa-intro h2 {
    max-width: 10ch;
    margin: 0;
    color: var(--theme-ink);
    font-size: clamp(3.15rem, 5vw, 6.2rem) !important;
    font-weight: 500 !important;
    letter-spacing: -.052em !important;
    line-height: .98 !important;
}

body.light-theme #about .about-qa-intro h2 span {
    display: block;
    margin-top: .08em;
    color: #8190a3;
}

body.light-theme #about .about-qa-lead {
    max-width: 35rem;
    margin: clamp(26px, 3vw, 46px) 0 0;
    color: var(--theme-muted);
    font-size: clamp(1rem, 1.2vw, 1.18rem);
    line-height: 1.65;
}

body.light-theme #about .about-qa-list {
    border-top: 1px solid var(--theme-line-strong);
}

body.light-theme #about .about-qa-item {
    position: relative;
    display: grid;
    grid-template-columns: 42px minmax(155px, .62fr) minmax(280px, 1.38fr);
    gap: clamp(18px, 2vw, 38px);
    align-items: start;
    padding: clamp(28px, 3vw, 42px) 0;
    border-bottom: 1px solid var(--theme-line);
    isolation: isolate;
}

body.light-theme #about .about-qa-item::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 8px -18px;
    border-radius: 2px;
    background: linear-gradient(90deg, rgba(40, 92, 196, .075), rgba(40, 92, 196, 0));
    opacity: 0;
    transform: scaleX(.96);
    transform-origin: left center;
    transition: opacity 220ms ease, transform 340ms cubic-bezier(.2, .72, .2, 1);
}

body.light-theme #about .about-qa-number {
    padding-top: .15rem;
    color: var(--theme-accent);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .12em;
}

body.light-theme #about .about-qa-item h3 {
    margin: 0;
    color: var(--theme-ink);
    font-size: clamp(1.1rem, 1.35vw, 1.35rem);
    font-weight: 600;
    letter-spacing: -.025em;
    line-height: 1.28;
}

body.light-theme #about .about-qa-item p {
    margin: 0;
    color: var(--theme-muted);
    font-size: clamp(.98rem, 1.08vw, 1.12rem);
    line-height: 1.68;
    transition: color 220ms ease, transform 340ms cubic-bezier(.2, .72, .2, 1);
}

body.light-theme #about .about-qa-more {
    margin: 0;
    padding: 0;
}

body.light-theme #about .about-qa-more > summary {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    width: fit-content;
    max-width: 100%;
    gap: 8px;
    min-height: 44px;
    margin-top: 20px;
    padding: 10px 2px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--theme-ink);
    font-size: .88rem;
    font-weight: 700;
    letter-spacing: .015em;
    list-style: none;
    cursor: pointer;
    transition: color 180ms ease, opacity 180ms ease;
}

body.light-theme #about .about-qa-more > summary::-webkit-details-marker {
    display: none;
}

body.light-theme #about .about-qa-more > summary::marker {
    content: "";
}

body.light-theme #about .about-qa-more > summary:hover,
body.light-theme #about .about-qa-more > summary:focus-visible {
    color: var(--theme-accent);
    background: transparent;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

body.light-theme #about .about-qa-more-open {
    display: none;
}

body.light-theme #about .about-qa-more[open] .about-qa-more-closed {
    display: none;
}

body.light-theme #about .about-qa-more[open] .about-qa-more-open {
    display: inline;
}

body.light-theme #about .about-qa-more-icon {
    flex: 0 0 auto;
    font-size: .95rem;
    font-weight: 500;
    line-height: 1;
    opacity: .8;
    transition: transform 220ms ease, opacity 180ms ease;
}

body.light-theme #about .about-qa-more > summary:hover .about-qa-more-icon,
body.light-theme #about .about-qa-more > summary:focus-visible .about-qa-more-icon {
    opacity: 1;
    transform: translateY(2px);
}

body.light-theme #about .about-qa-more[open] .about-qa-more-icon {
    transform: rotate(180deg);
}

body.light-theme #about .about-qa-extra {
    margin: 0;
    padding: 0;
}

@media (hover: hover) {
    body.light-theme #about .about-qa-item:hover::before {
        opacity: 1;
        transform: scaleX(1);
    }

    body.light-theme #about .about-qa-item:hover p {
        color: var(--theme-ink);
        transform: translateX(6px);
    }
}

html[data-theme="dark"] body.light-theme #about.about-qa-section {
    border-color: var(--theme-line);
    background:
        radial-gradient(circle at 8% 9%, rgba(145, 181, 250, .12), transparent 27rem),
        linear-gradient(135deg, #151a22 0%, #172130 54%, #121720 100%) !important;
}

html[data-theme="dark"] body.light-theme #about.about-qa-section::before {
    color: rgba(145, 181, 250, .045);
}

html[data-theme="dark"] body.light-theme #about .about-qa-intro h2 span {
    color: var(--theme-quiet);
}

html[data-theme="dark"] body.light-theme #about .about-qa-item::before {
    background: linear-gradient(90deg, rgba(145, 181, 250, .09), rgba(145, 181, 250, 0));
}

@media (max-width: 1050px) {
    body.light-theme #about .about-qa-shell {
        grid-template-columns: 1fr;
        gap: 62px;
    }

    body.light-theme #about .about-qa-intro {
        position: static;
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(270px, .72fr);
        column-gap: 44px;
        align-items: end;
    }

    body.light-theme #about .about-qa-intro .section-kicker {
        grid-column: 1 / -1;
    }

    body.light-theme #about .about-qa-intro h2 {
        max-width: 10ch;
    }

    body.light-theme #about .about-qa-lead {
        margin: 0 0 .35rem;
    }
}

@media (max-width: 720px) {
    body.light-theme #about.about-qa-section {
        padding: 72px 0 82px !important;
    }

    body.light-theme #about.about-qa-section::before {
        top: 1rem;
        right: -1rem;
        font-size: 10rem;
    }

    body.light-theme #about .about-qa-shell {
        gap: 48px;
    }

    body.light-theme #about .about-qa-intro {
        display: block;
    }

    body.light-theme #about .about-qa-intro .section-kicker {
        margin-bottom: 20px;
    }

    body.light-theme #about .about-qa-intro h2 {
        max-width: 9ch;
        font-size: clamp(3rem, 14vw, 4.9rem) !important;
    }

    body.light-theme #about .about-qa-lead {
        margin-top: 26px;
    }

    body.light-theme #about .about-qa-item {
        grid-template-columns: 34px minmax(0, 1fr);
        gap: 10px 14px;
        padding: 26px 0 29px;
    }

    body.light-theme #about .about-qa-item p {
        grid-column: 2;
    }

    body.light-theme #about .about-qa-item::before {
        inset-inline: -10px;
    }

    body.light-theme #about .about-qa-more > summary {
        min-height: 44px;
        margin-top: 14px;
        padding: 10px 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.light-theme #about .about-qa-item::before,
    body.light-theme #about .about-qa-item p,
    body.light-theme #about .about-qa-more > summary,
    body.light-theme #about .about-qa-more-icon {
        transition: none;
    }
}

/* Compact text control for the complete client list. */
body.light-theme #contact .clients--secondary .client-list-toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: auto !important;
    min-width: 0 !important;
    height: 38px !important;
    margin: 8px auto 0 !important;
    padding: 0 7px !important;
    gap: 8px;
    border: 0 !important;
    background: transparent !important;
    color: var(--theme-muted) !important;
    font: 700 .72rem/1.2 var(--editorial-font, "Manrope", sans-serif);
    letter-spacing: .01em;
    box-shadow: none !important;
}

body.light-theme #contact .clients--secondary .client-list-toggle::before {
    content: "Zobacz całą listę";
}

html[lang^="en"] body.light-theme #contact .clients--secondary .client-list-toggle::before { content: "See the full list"; }
html[lang^="de"] body.light-theme #contact .clients--secondary .client-list-toggle::before { content: "Vollständige Liste anzeigen"; }
html[lang^="cs"] body.light-theme #contact .clients--secondary .client-list-toggle::before { content: "Zobrazit celý seznam"; }
html[lang^="fr"] body.light-theme #contact .clients--secondary .client-list-toggle::before { content: "Voir toute la liste"; }
html[lang^="uk"] body.light-theme #contact .clients--secondary .client-list-toggle::before { content: "Переглянути весь список"; }

body.light-theme #contact .clients--secondary .client-list-toggle.is-open::before { content: "Zwiń listę"; }
html[lang^="en"] body.light-theme #contact .clients--secondary .client-list-toggle.is-open::before { content: "Hide list"; }
html[lang^="de"] body.light-theme #contact .clients--secondary .client-list-toggle.is-open::before { content: "Liste ausblenden"; }
html[lang^="cs"] body.light-theme #contact .clients--secondary .client-list-toggle.is-open::before { content: "Skrýt seznam"; }
html[lang^="fr"] body.light-theme #contact .clients--secondary .client-list-toggle.is-open::before { content: "Masquer la liste"; }
html[lang^="uk"] body.light-theme #contact .clients--secondary .client-list-toggle.is-open::before { content: "Згорнути список"; }

body.light-theme #contact .clients--secondary .client-list-toggle svg {
    width: .95rem;
    height: .95rem;
}

body.light-theme #contact .clients--secondary .client-list-toggle:hover,
body.light-theme #contact .clients--secondary .client-list-toggle:focus-visible {
    color: var(--theme-accent) !important;
}

body.light-theme #contact {
    padding-bottom: clamp(12px, 1.4vw, 22px) !important;
}

html[data-theme] body.light-theme #contact.contact {
    padding-bottom: clamp(14px, 1.5vw, 20px) !important;
}

body.light-theme #contact .clients--secondary {
    margin-top: clamp(36px, 4vw, 58px) !important;
    padding-top: clamp(24px, 2.8vw, 36px) !important;
}

body.light-theme #contact .clients--secondary .client-collaborations-header {
    margin-bottom: 10px !important;
}

/* Portfolio heading: the section name leads, while the descriptor stays quiet. */
html[data-theme] body.light-theme .portfolio-intro .clients--featured {
    padding-bottom: 0 !important;
}

body.light-theme #showreel {
    --portfolio-heading-gap: clamp(36px, 4vw, 56px);
    padding-top: var(--portfolio-heading-gap) !important;
}

body.light-theme #showreel > .section-inner > .section-header {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    margin-bottom: var(--portfolio-heading-gap) !important;
}

body.light-theme #showreel > .section-inner > .section-header > div {
    width: 100% !important;
    text-align: center;
}

body.light-theme #showreel .portfolio-display-title {
    margin: 0;
    color: var(--theme-ink);
    font-size: clamp(2.8rem, 4.1vw, 4.25rem);
    font-weight: 500;
    letter-spacing: -.055em;
    line-height: .94;
}

body.light-theme #showreel #showreel-title {
    width: 100% !important;
    max-width: none !important;
    margin: clamp(12px, 1.6vw, 20px) auto 0 !important;
    color: var(--theme-muted);
    font-size: clamp(1rem, 1.35vw, 1.35rem) !important;
    font-weight: 500 !important;
    letter-spacing: .01em !important;
    line-height: 1.3 !important;
    text-align: center !important;
}

body.light-theme #showreel #client-reels > .category-top {
    display: none !important;
}

@media (max-width: 720px) {
    body.light-theme #showreel .portfolio-display-title {
        font-size: clamp(2.4rem, 12vw, 3.4rem);
    }

    body.light-theme #showreel #showreel-title {
        margin-top: 10px;
    }
}

/* Contact finale: one decisive CTA panel with a compact three-point brief. */
body.light-theme #contact {
    padding: clamp(76px, 7vw, 120px) 0 clamp(18px, 2vw, 30px) !important;
    border-top: 1px solid var(--theme-line) !important;
    background: var(--theme-bg) !important;
}

body.light-theme #contact .contact-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(390px, .92fr);
    gap: clamp(52px, 7vw, 118px);
    overflow: hidden;
    padding: clamp(44px, 5vw, 78px);
    border-color: transparent !important;
    background: #19222d !important;
    color: #f7f9fc;
}

body.light-theme #contact .contact-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: linear-gradient(90deg, #285cc4 0%, #6fa3ff 56%, #93d8e8 100%);
}

body.light-theme #contact .contact-card-copy {
    align-self: end;
}

body.light-theme #contact .contact-card .section-kicker {
    margin: 0 0 24px;
    color: #91b5fa !important;
}

body.light-theme #contact .contact-card h2 {
    max-width: 10ch;
    margin: 0;
    color: #f7f9fc !important;
    font-size: clamp(3.35rem, 5.6vw, 6.75rem) !important;
    font-weight: 500 !important;
    letter-spacing: -.065em !important;
    line-height: .92 !important;
}

body.light-theme #contact .contact-card h2 span {
    color: #9daaba;
}

body.light-theme #contact .contact-card-copy > p:last-child {
    max-width: 45rem;
    margin: clamp(28px, 3vw, 44px) 0 0;
    color: #bdc7d3;
    font-size: clamp(.98rem, 1.15vw, 1.12rem);
    line-height: 1.72;
}

body.light-theme #contact .contact-card-actions {
    align-self: center;
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, .24);
}

body.light-theme #contact .contact-card-actions-label {
    margin: 0;
    padding: 18px 0 16px;
    color: #91a0b2;
    font-size: .67rem;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
}

body.light-theme #contact .contact-action {
    display: grid;
    grid-template-columns: minmax(92px, .42fr) minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    min-height: 92px;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, .14);
    color: #f7f9fc !important;
    text-decoration: none;
    transition: padding 260ms cubic-bezier(.2, .72, .2, 1), background 180ms ease;
}

body.light-theme #contact .contact-action:last-child {
    border-bottom: 1px solid rgba(255, 255, 255, .14);
}

body.light-theme #contact .contact-card-actions > .contact-action:nth-of-type(2) {
    border-bottom: 1px solid rgba(255, 255, 255, .14);
}

body.light-theme #contact .contact-action span {
    color: #91a0b2;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

body.light-theme #contact .contact-action strong {
    min-width: 0;
    color: #f7f9fc;
    font-size: clamp(1.15rem, 1.6vw, 1.55rem);
    font-weight: 550;
    letter-spacing: -.035em;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

body.light-theme #contact .contact-vcard {
    position: relative;
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) 40px;
    gap: 16px;
    align-items: center;
    min-height: 82px;
    margin-top: 20px;
    padding: 14px 14px 14px 15px;
    overflow: hidden;
    border: 1px solid rgba(143, 180, 251, .34);
    background: linear-gradient(120deg, rgba(255, 255, 255, .085), rgba(40, 92, 196, .17));
    box-shadow: inset 0 1px rgba(255, 255, 255, .08);
    color: #f7f9fc !important;
    text-decoration: none;
    transition: background 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
    animation: none;
}

body.light-theme #contact .contact-vcard::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: linear-gradient(180deg, #8fb4fb, #285cc4);
}

body.light-theme #contact .contact-vcard-mark {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    overflow: hidden;
    background: #111820;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .18);
}

body.light-theme #contact .contact-vcard-mark img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body.light-theme #contact .contact-vcard-copy {
    display: grid;
    gap: 3px;
    min-width: 0;
}

body.light-theme #contact .contact-vcard-copy strong {
    color: #f7f9fc;
    font-size: 1rem;
    font-weight: 650;
    letter-spacing: -.02em;
    line-height: 1.25;
}

body.light-theme #contact .contact-vcard-copy small {
    color: #a9b7ca;
    font-size: .73rem;
    line-height: 1.35;
}

body.light-theme #contact .contact-vcard-arrow {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 1px solid rgba(143, 180, 251, .4);
    border-radius: 50%;
    background: rgba(40, 92, 196, .12);
    color: #9dc1ff;
    font-size: 1.05rem;
    line-height: 1;
    transition: transform 220ms cubic-bezier(.2, .72, .2, 1), border-color 180ms ease, background-color 180ms ease;
}

body.light-theme #contact .contact-vcard:focus-visible {
    animation: none;
    transform: none;
    outline: 2px solid #79a8ff;
    outline-offset: 3px;
}

@media (hover: hover) {
    body.light-theme #contact .contact-action:hover {
        padding-inline: 14px;
        background: rgba(255, 255, 255, .055);
    }

    body.light-theme #contact .contact-vcard:hover {
        animation: none;
        transform: none;
        border-color: rgba(143, 180, 251, .72);
        background: linear-gradient(120deg, rgba(255, 255, 255, .12), rgba(40, 92, 196, .24));
        box-shadow: inset 0 1px rgba(255, 255, 255, .1), 0 0 0 3px rgba(40, 92, 196, .08);
    }

    body.light-theme #contact .contact-vcard:hover .contact-vcard-arrow {
        transform: none;
        border-color: #8fb4fb;
        background: rgba(40, 92, 196, .24);
    }
}

body.light-theme #contact .contact-brief {
    display: grid;
    grid-template-columns: minmax(230px, .8fr) minmax(0, 2.2fr);
    border: 1px solid var(--theme-line);
    border-top: 0;
    background: var(--theme-surface);
}

body.light-theme #contact .contact-brief-intro {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
    min-height: 178px;
    padding: clamp(26px, 3vw, 42px);
    background: var(--theme-accent-soft);
}

body.light-theme #contact .contact-brief-intro span {
    color: var(--theme-muted);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .11em;
    text-transform: uppercase;
}

body.light-theme #contact .contact-brief-intro strong {
    max-width: 10ch;
    color: var(--theme-ink);
    font-size: clamp(1.55rem, 2.2vw, 2.35rem);
    font-weight: 550;
    letter-spacing: -.045em;
    line-height: 1.08;
}

body.light-theme #contact .contact-brief-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0;
    padding: 0;
    list-style: none;
}

body.light-theme #contact .contact-brief-list li {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: clamp(26px, 3vw, 42px);
    border-left: 1px solid var(--theme-line);
}

body.light-theme #contact .contact-brief-list li > span {
    margin-bottom: auto;
    padding-bottom: 30px;
    color: var(--theme-accent);
    font-size: .72rem;
    font-weight: 750;
    letter-spacing: .12em;
}

body.light-theme #contact .contact-brief-list strong {
    margin: 0 0 12px;
    color: var(--theme-ink);
    font-size: clamp(1.05rem, 1.25vw, 1.28rem);
    font-weight: 600;
    letter-spacing: -.025em;
}

body.light-theme #contact .contact-brief-list p {
    margin: 0;
    color: var(--theme-muted);
    font-size: .9rem;
    line-height: 1.62;
}

html[data-theme="dark"] body.light-theme #contact .contact-card {
    background: #172130 !important;
}

html[data-theme="dark"] body.light-theme #contact .contact-brief {
    background: var(--theme-surface);
}

html[data-theme="dark"] body.light-theme #contact .contact-brief-intro {
    background: var(--theme-accent-soft);
}

body.light-theme #contact .clients--secondary {
    margin-top: clamp(46px, 5vw, 72px) !important;
}

@media (max-width: 1050px) {
    body.light-theme #contact .contact-card {
        grid-template-columns: 1fr;
        gap: 52px;
    }

    body.light-theme #contact .contact-card h2 {
        max-width: 12ch;
    }

    body.light-theme #contact .contact-card-actions {
        max-width: 720px;
    }
}

@media (max-width: 780px) {
    body.light-theme #contact {
        padding-top: 58px !important;
    }

    body.light-theme #contact .contact-card {
        gap: 42px;
        padding: 34px 24px 38px;
    }

    body.light-theme #contact .contact-card h2 {
        font-size: clamp(2.8rem, 12.5vw, 4.8rem) !important;
    }

    body.light-theme #contact .contact-action {
        grid-template-columns: 1fr;
        gap: 7px;
        min-height: 0;
        padding: 19px 0 21px;
    }

    body.light-theme #contact .contact-vcard {
        grid-template-columns: 44px minmax(0, 1fr) 38px;
        gap: 12px;
        min-height: 74px;
        margin-top: 16px;
        padding: 12px;
    }

    body.light-theme #contact .contact-vcard-mark {
        width: 44px;
        height: 44px;
    }

    body.light-theme #contact .contact-vcard-arrow {
        width: 38px;
        height: 38px;
    }

    body.light-theme #contact .contact-brief {
        grid-template-columns: 1fr;
    }

    body.light-theme #contact .contact-brief-intro {
        min-height: 0;
    }

    body.light-theme #contact .contact-brief-intro strong {
        max-width: none;
    }

    body.light-theme #contact .contact-brief-list {
        grid-template-columns: 1fr;
    }

    body.light-theme #contact .contact-brief-list li {
        display: grid;
        grid-template-columns: 38px minmax(0, 1fr);
        gap: 7px 14px;
        padding: 24px;
        border-left: 0;
        border-top: 1px solid var(--theme-line);
    }

    body.light-theme #contact .contact-brief-list li > span {
        grid-row: 1 / 3;
        margin: 0;
        padding: 2px 0 0;
    }

    body.light-theme #contact .contact-brief-list strong,
    body.light-theme #contact .contact-brief-list p {
        grid-column: 2;
    }

    body.light-theme #contact .contact-brief-list strong {
        margin-bottom: 2px;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.light-theme #contact .contact-action,
    body.light-theme #contact .contact-vcard {
        animation: none;
        transition: none;
    }
}
