/* Shared portfolio presentation. Product screens and embedded apps are untouched. */
.portfolio-theme{--bg:#151718;--text:#f4f4f4;--muted:#9da3a6;--line:#ffffff12;--panel:#222525;--theme-ease:cubic-bezier(.22,1,.36,1);--mockup-shadow:0 1px 2px #00000026,0 4px 8px -4px #00000024;background:#151718;color:#f4f4f4;color-scheme:dark}
.portfolio-theme .portfolio-header{background:transparent}
.portfolio-theme :is(a,button,video,[tabindex]):focus-visible{outline:2px solid #fcb410;outline-offset:4px}
.portfolio-theme :is(button,a){-webkit-tap-highlight-color:transparent;touch-action:manipulation}
.portfolio-theme .wrap{width:min(100% - 2.5rem,75rem)}
.portfolio-theme:not(.home-ampla) .intro{padding-block:4rem 3rem}
.portfolio-theme:not(.home-ampla) .intro h1{color:#f4f4f4}
.portfolio-theme:not(.home-ampla) .intro .lead{color:#a8aaab}
.portfolio-theme:not(.home-ampla) .intro .summary{color:#b8bdbf;font-size:1.0625rem;line-height:1.65}
.portfolio-theme .eyebrow{color:#9da3a6}
.portfolio-theme .theme-case-intro{display:grid;gap:2rem}
.portfolio-theme .theme-case-intro .summary{margin-top:0}
.portfolio-theme .theme-case-intro .meta{display:grid;gap:1.25rem;margin-top:2rem;padding-top:1.5rem;border-top:1px solid var(--line);color:#d8dbdc;font-size:.875rem}
.portfolio-theme .theme-case-intro .meta p{margin:0}
.portfolio-theme .theme-case-intro .meta span{display:block;color:#9da3a6;margin-bottom:.3rem}
.portfolio-theme .panel:not(.card-3d-stage),.portfolio-theme .theme-more-work>a{
 border:1px solid #ffffff12;border-radius:1rem;background-color:#222525;
 background-image:url('/surface-dither.svg'),linear-gradient(145deg,#222525,#1b1e1f);
 background-size:128px 128px,auto;background-repeat:repeat,no-repeat;background-blend-mode:soft-light,normal;
 box-shadow:inset 0 1px 0 #ffffff03;
}
/* Dither belongs to the empty presentation surface, never an image/filter overlay. */
/* Short contact depth avoids broad quantized halos on dark surfaces. */
.portfolio-theme :is(.device,.phone,.screen-art){box-shadow:var(--mockup-shadow)}
.portfolio-theme .catalogue-grid img{box-shadow:var(--mockup-shadow)}
.portfolio-theme .chapter{margin-top:4rem;padding-block:2.5rem 2rem;border-top:1px solid var(--line)}
.portfolio-theme :is(.copy,.film-copy>p:not(.eyebrow),.demo-copy>p:not(.eyebrow)){color:#b8bdbf}
.portfolio-theme :is(figcaption,.motion-caption,.viewer-note){color:#9da3a6}
.portfolio-theme figcaption:not(:has(button)){text-align:center;justify-content:center}
.portfolio-theme .light-stage figcaption{color:#9da3a6}
.portfolio-theme :is(.system-contributions,.interaction-notes,.animation-steps)>div{border-color:#ffffff12}
.portfolio-theme .theme-more-work{padding:5rem 0 2rem}
.portfolio-theme .theme-more-work>.eyebrow{font:400 .875rem/1.6 Gilroy,PortfolioGilroy,Arial,sans-serif;margin:0 0 1.1rem;color:#9da3a6}
.portfolio-theme .theme-more-work>a{position:relative;isolation:isolate;display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:.5rem 1.5rem;margin-top:.75rem;padding:1.25rem;color:#d8dbdc;text-decoration:none;font:500 clamp(1.4rem,3vw,2rem)/1.25 Gilroy,PortfolioGilroy,Arial,sans-serif;transition:color 250ms var(--theme-ease)}
.portfolio-theme .theme-more-work>a span{display:block;margin:0;color:#9da3a6;font:400 .875rem/1.5 Gilroy,PortfolioGilroy,Arial,sans-serif}
.portfolio-theme .theme-private-content{width:min(100% - 2.5rem,75rem);margin-inline:auto}
.portfolio-theme .theme-private-content .private-intro{width:100%;max-width:none;margin:5rem 0 3rem}
.portfolio-theme .theme-private-content .private-intro .back-link{margin-top:2rem}
.portfolio-theme .theme-more-work>a::after,.portfolio-theme .theme-button::after{
 content:"";position:absolute;inset:0;padding:1px;border-radius:inherit;pointer-events:none;
 background:linear-gradient(135deg,#ffffff99,transparent 72%);
 mask:linear-gradient(#fff 0 0) content-box exclude,linear-gradient(#fff 0 0);
 -webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);
 -webkit-mask-composite:xor;mask-composite:exclude;opacity:0;transition:opacity 450ms var(--theme-ease);
}
.portfolio-theme .theme-button{position:relative;isolation:isolate;overflow:hidden;display:inline-flex;justify-content:center;align-items:center;gap:.625rem;min-height:2.75rem;max-width:100%;margin:0;padding:.65rem 1.125rem;border:1px solid #ffffff14;border-radius:2.5rem;background:linear-gradient(190deg,#282b2bed,#222525ed 65%);box-shadow:inset 0 1px 0 #ffffff04,0 8px 24px #00000014;color:#c6c6c6;font:400 .875rem/1.5 Gilroy,PortfolioGilroy,Arial,sans-serif;text-decoration:none;white-space:normal;user-select:none;cursor:pointer;transition:color 250ms var(--theme-ease),transform 160ms var(--theme-ease)}
.portfolio-theme .theme-button::before{content:"";position:absolute;z-index:-1;inset:0;background:linear-gradient(190deg,#ffffff12,transparent 65%);opacity:0;transition:opacity 450ms var(--theme-ease)}
.portfolio-theme .theme-button:active{transform:scale(.97)}
.portfolio-theme .theme-button[aria-pressed=true],.portfolio-theme .theme-button[aria-selected=true]{background:#333737;color:#f4f4f4;border-color:#ffffff66}
.portfolio-theme .theme-button:disabled{opacity:.55;cursor:wait}
.portfolio-theme .theme-button[hidden]{display:none}
.portfolio-theme :is(.piki-3d-actions,.demo-controls) button.theme-button{background:linear-gradient(190deg,#282b2bed,#222525ed 65%);color:#c6c6c6;border-color:#ffffff14;box-shadow:inset 0 1px 0 #ffffff04,0 8px 24px #00000014}
.portfolio-theme :is(.piki-3d-actions,.demo-controls) button.theme-button[aria-pressed=true]{background:#333737;color:#f4f4f4;border-color:#ffffff66}
.portfolio-theme #demo-start{flex-direction:row;min-width:0;min-height:2.75rem;gap:.625rem;padding:.65rem 1.125rem;font-weight:400;font-size:.875rem}
.portfolio-theme #demo-start .demo-play-icon{width:1rem;height:1rem;border:0;background:transparent;box-shadow:none;transform:none;transition:none}
.portfolio-theme #demo-start .demo-play-icon svg{width:.625rem;height:.75rem;margin:0}
.portfolio-theme :is(.play-icon,.video-start-icon){border:1px solid #ffffff26;background:linear-gradient(145deg,#333737ed,#222525ed);box-shadow:inset 0 1px 0 #ffffff12,0 .5rem 1.5rem #00000024}
.portfolio-theme .theme-icon{width:2.75rem;padding:0;flex-shrink:0}
.portfolio-theme .theme-icon svg{width:1.125rem;height:1.125rem;pointer-events:none}
/* Migrated archive cases keep every original visual at its native aspect ratio. */
.archive-case .archive-intro{display:grid;gap:2rem}
.archive-case .archive-intro h1{font-size:clamp(3.2rem,6.5vw,5.5rem);overflow-wrap:break-word}
.archive-summary{font-size:1.0625rem;line-height:1.65;color:#b8bdbf}
.archive-case .archive-copy{max-width:48rem;margin:4rem auto 2.5rem;color:#b8bdbf;font-size:1.0625rem;line-height:1.7}
.archive-case .archive-media{position:relative;margin:1.5rem 0}
.archive-case .archive-media>img{display:block;width:100%;height:auto;max-width:100%;object-fit:contain}
.archive-film{padding:1.5rem;margin-top:2rem}
.archive-film-cover{position:relative;overflow:hidden;aspect-ratio:16/9;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1rem;border-radius:.5rem;background:#151718}
.archive-film-cover>img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
.archive-film-cover>.eyebrow,.archive-film-cover>button{position:relative}
.archive-film-cover .eyebrow{margin:0;padding:.25rem .625rem;border:1px solid #ffffff14;border-radius:2rem;background:#222525ed;color:#c6c6c6}
.archive-film iframe{display:block;width:100%;aspect-ratio:16/9;border:0;border-radius:.5rem}
.archive-film figcaption{margin-top:1.25rem;font-size:.875rem}
.archive-film figcaption a{text-decoration:underline;text-underline-offset:.2em}
.site-cursor[popover]{margin:0;padding:0;border:0;overflow:visible;color:transparent}
/* The old Framer content remains interactive on About / Playground / studies. */
.portfolio-theme.site-legacy-chrome #main>div:first-child{background:#151718!important}
.portfolio-theme.site-legacy-chrome [data-framer-name="Section 1 - Skills"]{padding-top:4rem!important;padding-bottom:2rem!important}
.portfolio-theme.site-legacy-chrome [data-framer-name="Skills and experience"]{color:#f4f4f4!important;--framer-text-color:#f4f4f4!important}
.portfolio-theme.site-legacy-chrome [data-framer-name="Skills and experience"] :is(p,h1,h2,h3){color:#f4f4f4!important;--framer-text-color:#f4f4f4!important}
.portfolio-theme.site-legacy-chrome [data-framer-name="Tool Card"]{position:relative;isolation:isolate;border:1px solid #ffffff18!important;border-radius:1rem!important;background:#222525!important;box-shadow:inset 0 1px 0 #ffffff03!important;overflow:hidden}
.portfolio-theme.site-legacy-chrome [data-framer-name="Tool Card"]::after{content:"";position:absolute;inset:0;border-radius:inherit;border:1px solid #ffffff00;pointer-events:none;transition:border-color 450ms var(--theme-ease)}
.portfolio-theme.site-legacy-chrome [data-framer-name="Tool Name"]{border:1px solid #ffffff16!important;border-radius:2rem!important;background:#222525eb!important;padding:.5rem .875rem!important;color:#c6c6c6!important}
.portfolio-theme.site-legacy-chrome [data-framer-name="Tool Name"] p{color:#c6c6c6!important;--framer-text-color:#c6c6c6!important;text-transform:none!important;font-size:.875rem!important}
.portfolio-theme:is(.portfolio-about,.portfolio-playground) [data-framer-name="Section 1 - Skills"]{width:100%!important;max-width:none!important;padding-inline:0!important;gap:3rem!important;transform:none!important;opacity:1!important}
.portfolio-theme.portfolio-playground [data-framer-name="Tools"]{width:calc(100% - 2.5rem)!important;max-width:75rem!important;margin-inline:auto;transform:none!important}
.portfolio-theme:is(.portfolio-about,.portfolio-playground) [data-framer-name="Content"]{display:grid!important;grid-template-columns:minmax(0,1fr);gap:2rem!important;width:calc(100% - 2.5rem)!important;max-width:75rem!important;padding:0!important;margin-inline:auto;transform:none!important}
.portfolio-theme:is(.portfolio-about,.portfolio-playground) [data-framer-name="Content"]>[data-framer-component-type="RichTextContainer"]{opacity:1!important;transform:none!important}
.portfolio-theme:is(.portfolio-about,.portfolio-playground) [data-framer-name="Skills and experience"]{width:100%!important}
.portfolio-theme:is(.portfolio-about,.portfolio-playground) [data-framer-name="Skills and experience"] p{font:500 clamp(3.2rem,6.5vw,5.5rem)/1.12 PortfolioGilroy,Arial,sans-serif!important;letter-spacing:-.035em!important;text-align:left!important;--framer-text-alignment:left!important}
.portfolio-theme:is(.portfolio-about,.portfolio-playground) [data-framer-name="Content"]>div:nth-child(2) p{font:400 1.0625rem/1.65 PortfolioGilroy,Arial,sans-serif!important;color:#b8bdbf!important;--framer-text-color:#b8bdbf!important}
.portfolio-theme:is(.portfolio-about,.portfolio-playground) [data-framer-name="Content"]>div:nth-child(2) a{color:#d8dbdc!important;text-decoration:underline;text-underline-offset:.25em;overflow-wrap:anywhere}
.portfolio-theme.site-legacy-chrome [data-framer-name="Tool Card"],.portfolio-theme.site-legacy-chrome [data-framer-name="Tool Name"]{transform:none!important}
.portfolio-theme.site-legacy-chrome [data-framer-name="Tool Card"] img{transition:transform 600ms var(--theme-ease)}
.portfolio-theme.site-legacy-chrome #overlay>div:first-child{background:#090b0dd9!important;backdrop-filter:blur(7px);-webkit-backdrop-filter:blur(7px)}
.theme-overlay-toolbar{position:fixed;top:1rem;right:1rem;z-index:10000;display:flex;gap:.5rem}
.theme-overlay-toolbar[hidden]{display:none}
.portfolio-theme .dialog-image-area{background:#151718}
@media(min-width:810px){
 .portfolio-theme .wrap{width:min(100% - 5rem,75rem)}
 .portfolio-theme:not(.home-ampla) .intro{padding-block:5rem 4rem}
 .portfolio-theme .theme-case-intro,.archive-case .archive-intro{grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);align-items:end;gap:clamp(2rem,5vw,5rem)}
 .portfolio-theme .theme-case-intro .lead{font-size:clamp(2rem,3.5vw,3rem)}
 .portfolio-theme .chapter{margin-top:5rem;padding-top:3rem}
 .portfolio-theme .theme-more-work>a{padding:1.5rem 1.75rem}
 .archive-case .archive-summary{font-size:1.125rem}
 .archive-case .archive-copy{margin-block:5rem 3rem;font-size:1.125rem}
 .archive-case .archive-media{margin-block:2rem}
 .portfolio-theme:is(.portfolio-about,.portfolio-playground) [data-framer-name="Content"]{width:calc(100% - 5rem)!important;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:4rem!important;align-items:end}
 .portfolio-theme.portfolio-playground [data-framer-name="Tools"]{width:calc(100% - 5rem)!important}
 .portfolio-theme:is(.portfolio-about,.portfolio-playground) [data-framer-name="Content"]>div:nth-child(n+3){grid-column:1/-1;width:100%!important}
}
@media(max-width:599px){
 .portfolio-theme .theme-more-work>a{align-items:flex-start;flex-direction:column}
 .theme-viewer-toolbar h2{max-width:25ch}
 .theme-viewer-actions{gap:.375rem}
 .theme-viewer-actions .theme-button{padding-inline:.875rem;font-size:.8125rem}
 .theme-viewer-actions .theme-icon{padding:0}
}
@media(hover:hover) and (pointer:fine){
 .portfolio-theme .theme-button:not(:disabled):hover,.portfolio-theme .theme-more-work>a:hover{color:#fff}
 .portfolio-theme .theme-button:not(:disabled):hover::before,.portfolio-theme .theme-button:not(:disabled):hover::after,.portfolio-theme .theme-more-work>a:hover::after{opacity:1}
 .portfolio-theme.site-legacy-chrome [data-framer-name="Tool Card"]:hover::after{border-color:#ffffff66}
 .portfolio-theme.site-legacy-chrome [data-framer-name="Tool Card"]:hover img{transform:scale(1.025)}
}
@media(prefers-reduced-motion:reduce){
 .portfolio-theme .theme-button{transition:none;transform:none}
 .portfolio-theme .theme-button::before,.portfolio-theme .theme-button::after,.portfolio-theme .theme-more-work>a::after{transition:opacity 120ms ease}
 .portfolio-theme.site-legacy-chrome [data-framer-name="Tool Card"] img{transition:none;transform:none!important}
}
