/* Oxeye uses the homepage columns and the Ovalix case-study card treatment. */
body.case-study.oxeye-cards{
 --ox-card-padding:32px;
 --ox-card-surface:#eeeef0;
 --ox-shell:min(1320px,calc(100vw - 112px));
 --ox-column-gap:clamp(60px,7vw,120px);
 --ox-sidebar-width:calc((var(--ox-shell) - var(--ox-column-gap)) * .3863636);
 --case-top:56px;
}
body.case-study.oxeye-cards>.ox{width:min(1320px,calc(100% - 112px));padding:56px 0 64px}
.oxeye-cards .oc-layout{grid-template-columns:minmax(0,.85fr) minmax(0,1.35fr);gap:var(--ox-column-gap)}
.oxeye-cards .oc-story{display:grid;gap:24px;container-type:inline-size}
body.oxeye-cards .oc-summary{top:56px;width:var(--ox-sidebar-width);max-height:calc(100dvh - 160px);padding:0}
body.oxeye-cards .oc-project-identity{margin-top:32px}
body.oxeye-cards .oc-project-identity img.ox-logo{width:144px;height:auto}
body.oxeye-cards .oc-project-identity p{font-size:36px;line-height:1.2;font-weight:500;letter-spacing:-.025em;margin-top:24px;text-wrap:balance}
body.oxeye-cards .oc-project-identity p span{font-size:24px;line-height:1.4;letter-spacing:0;font-weight:400;margin-top:16px;text-wrap:pretty}
body.oxeye-cards .oc-index{margin-top:32px}
body.oxeye-cards .oc-index nav{display:grid;grid-template-columns:1fr;gap:0;padding:0;overflow:visible}
body.oxeye-cards .oc-index nav a{font-size:22px;line-height:1.35;min-height:44px;padding:6px 0;border:0;border-radius:0;white-space:normal;background:transparent}

/* One subject per card; the screenshot and reasoning share the same container. */
body.oxeye-cards .ox-case-card,
body.oxeye-cards .ox-case-card.ox-story-intro{
 display:grid;width:100%;min-width:0;margin:0;padding:var(--ox-card-padding);
 gap:24px;border:0;border-radius:12px;background:var(--ox-card-surface);
 scroll-margin-top:32px;box-shadow:none;
}
.oxeye-cards .ox-case-card:focus{outline:none}
body.case-study.oxeye-cards .ox .ox-case-card :is(h1,h2){font:700 clamp(26px,2.3vw,34px)/1.2 var(--font-body);letter-spacing:-.03em;max-width:none;margin:0;text-wrap:pretty}
body.case-study.oxeye-cards .ox .ox-case-card h3{font:700 20px/1.35 var(--font-body);letter-spacing:-.02em}
body.oxeye-cards .ox-case-card .ox-lead,
body.oxeye-cards .ox-story-body,
body.oxeye-cards .ox-story-copy p{font:400 17px/1.65 var(--font-body);max-width:none;margin:0;color:var(--text-secondary)}
.oxeye-cards .ox-case-card .ox-section-head{display:block;margin:0}
.oxeye-cards .ox-section-head>div{display:grid;gap:20px}
.oxeye-cards .ox-section-head>.ox-section-icon,
.oxeye-cards .ox-story-intro-title>img{display:none}
.oxeye-cards .ox-story-intro-title{display:block}
.oxeye-cards .ox-story-credit{display:flex;align-items:center;gap:12px 24px;font-size:13px;line-height:1.6}
.oxeye-cards .ox-story-credit a{min-height:44px}
.oxeye-cards .ox-card-cover,
.oxeye-cards .ox-figure-unframed,
.oxeye-cards #handoff .ox-icons{
 --case-media-inset:0px;
 --case-media-gradient:none;
 --case-media-shadow:none;
}
.oxeye-cards :is(.ox-card-cover,.ox-figure-unframed){
 --case-media-screen-radius:var(--case-media-radius);
}
.oxeye-cards .ox-card-cover{
 margin:0;min-width:0;
}
.oxeye-cards #handoff .ox-icons{
 --case-media-radius:0px;
 --case-media-screen-radius:0px;
}
.oxeye-cards .ox-case-card .ox-figure{margin:0;gap:14px;min-width:0}
.oxeye-cards .ox-case-card figcaption{font:400 13px/1.6 var(--font-body);color:var(--text-secondary);min-height:0;max-width:none;padding:0}
.oxeye-cards .ox-case-card figcaption strong{font-weight:500;color:var(--text-primary)}
.oxeye-cards .ox-story-copy{max-width:none;gap:14px}
.oxeye-cards .ox-story-evidence{padding-left:16px;border-left:2px solid #aaa2d5}

/* Galleries are manually browsable. Vertical scrolling always follows the cards. */
.oxeye-cards .ox-story-gallery{display:flex;flex-direction:column;gap:16px}
.oxeye-cards .ox-story-controls{order:2;margin:0;gap:12px;font-size:13px;min-height:44px}
.oxeye-cards .ox-story-controls button{background:transparent;border-color:#cfd0d4;flex-shrink:0}
.oxeye-cards .ox-story-controls button:hover:enabled{background:#fff}
.oxeye-cards .ox-story-viewport{border-radius:0;scrollbar-width:none}
.oxeye-cards .ox-story-viewport::-webkit-scrollbar{display:none}
.oxeye-cards .ox-story-gallery :is(.oc-zoom,.ox-annot-media){height:auto;aspect-ratio:4/3}
.oxeye-cards .ox-story-gallery .ox-annot-media .oc-zoom{aspect-ratio:auto;height:100%;padding:0;background:transparent}
.oxeye-cards .ox-story-gallery[data-ready] .ox-story-slide>.ox-annot{gap:14px}
.oxeye-cards .ox-story-gallery figcaption{min-height:0;padding:0}

.oxeye-cards .ox-story-details>summary{font-size:14px;line-height:1.5;gap:16px;color:#575c5c}
.oxeye-cards .ox-story-details>summary>span{flex:0 0 24px;text-align:center;transform:none}
.oxeye-cards .ox-story-details[open]>summary>span{font-size:0;transform:none}
.oxeye-cards .ox-story-details[open]>summary>span::after{content:'−';font-size:23px}
.oxeye-cards .ox-story-details-body{gap:28px;padding-top:20px}
.oxeye-cards .ox-story-details-body>p{font-size:16px;line-height:1.65;color:var(--text-secondary)}
.oxeye-cards .ox-story-details-body .ox-source{font-size:14px;overflow-wrap:anywhere}
.oxeye-cards .ox-story-details-body .ox-gallery{gap:28px;grid-template-columns:1fr}
.oxeye-cards .ox-story-details-body .ox-gallery>.ox-figure{max-width:none!important;grid-column:auto!important}
.oxeye-cards .ox-case-card.ox-quote{gap:24px}
.oxeye-cards .ox-quote blockquote{margin:0;padding:0;border:0}
body.oxeye-cards .ox-quote blockquote p{font:400 21px/1.55 var(--font-body);letter-spacing:-.015em;color:var(--text-primary)}
.oxeye-cards .ox-quote strong{font-weight:500}
.oxeye-cards .ox-quote-by{margin:0}
.oxeye-cards .case-next-project{margin:40px 0 0}
.oxeye-cards .portfolio-site-footer{margin-top:16px}

/* UX decisions are anchored to the original screens, with right-angle arrows. */
.oxeye-cards .ox-ux-studies{display:grid;gap:36px;min-width:0}
.oxeye-cards .ox-ux-studies>h3{margin:0 0 -16px}
.oxeye-cards .ox-ux-study{display:grid;gap:20px;margin:0;min-width:0}
.oxeye-cards .ox-ux-caption{display:grid;gap:6px;margin:0}
.oxeye-cards .ox-ux-caption>span{font-size:12px;color:var(--text-secondary)}
.oxeye-cards .ox-ux-caption>strong{font-size:18px;line-height:1.4;font-weight:600;color:var(--text-primary)}
.oxeye-cards .ox-ux-stage{
 --ox-ux-stage-gap:30px;
 --ox-ux-arrow-buffer:32px;
 position:relative;display:grid;row-gap:calc(var(--ox-ux-stage-gap) + var(--ox-ux-arrow-buffer));min-width:0;
}
.oxeye-cards [data-ux-study="flow"] .ox-ux-stage{--ox-ux-stage-gap:48px}
.oxeye-cards [data-ux-study="factors"] .ox-ux-stage{--ox-ux-stage-gap:46px}
.oxeye-cards .ox-ux-media{min-width:0}
.oxeye-cards [data-ux-study="factors"] .ox-ux-media{width:min(calc(100% - 32px),520px);justify-self:center}
/* Trim the baked-in rim of the 1404 × 1780 screenshot. The arrows still measure the original image. */
.oxeye-cards #sidebar [data-ux-study="factors"] .ox-ux-media>.oc-zoom{
 overflow:hidden;border-radius:var(--case-media-screen-radius);box-shadow:var(--case-media-shadow);
}
.oxeye-cards #sidebar [data-ux-study="factors"] .ox-ux-media>.oc-zoom>img{
 flex:none;width:calc(100% * 1404 / 1336);max-width:none;
 margin-block:calc(-100% * 28 / 1336) calc(-100% * 42 / 1336);border-radius:0;box-shadow:none;
}
.oxeye-cards .ox-ux-leaders{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;overflow:visible;color:#6552bf;z-index:1}
.oxeye-cards .ox-ux-leaders path{fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:miter;vector-effect:non-scaling-stroke}
.oxeye-cards .ox-ux-leaders marker path{stroke-width:1.2;vector-effect:none}
.oxeye-cards .ox-ux-notes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 24px;list-style:none;padding:0;margin:0}
.oxeye-cards .ox-ux-notes>li{display:grid;grid-template-columns:24px minmax(0,1fr);align-items:start;gap:10px;padding:0}
.oxeye-cards .ox-ux-badge{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:#6552bf;color:#fff;font:600 12px/1 var(--font-body);position:relative;z-index:2}
.oxeye-cards :is([data-ux-study="factors"],[data-ux-study="scan-running"]) .ox-ux-notes-bottom>li,
.oxeye-cards [data-ux-study="scan-trigger"] .ox-ux-notes-top>li{grid-column:2}
.oxeye-cards .ox-ux-notes strong{display:block;font-size:14px;line-height:1.5;font-weight:600;color:var(--text-primary)}
.oxeye-cards .ox-ux-notes p{margin:6px 0 0;font-size:14px;line-height:1.6;color:var(--text-secondary)}
.oxeye-cards #dast .ox-ux-studies{gap:clamp(48px,5vw,76px)}
.oxeye-cards #dast .ox-ux-stage{--ox-ux-stage-gap:clamp(44px,4.5vw,72px)}
.oxeye-cards #dast .ox-ux-study :is(.ox-ux-media,.ox-annot-media){width:min(100%,var(--ox-scan-media-width));justify-self:center;margin-inline:auto}
.oxeye-cards [data-ux-study="scan-trigger"]{--ox-scan-media-width:488px}
.oxeye-cards [data-ux-study="scan-running"]{--ox-scan-media-width:600px}
@container(max-width:420px){
 .oxeye-cards .ox-ux-stage{--ox-ux-stage-gap:24px;--ox-ux-arrow-buffer:24px}
 .oxeye-cards [data-ux-study="flow"] .ox-ux-stage{--ox-ux-stage-gap:36px}
 .oxeye-cards [data-ux-study="factors"] .ox-ux-stage{--ox-ux-stage-gap:40px}
 .oxeye-cards .ox-ux-notes{gap:14px}
 .oxeye-cards .ox-ux-notes>li{grid-template-columns:20px minmax(0,1fr);gap:7px}
 .oxeye-cards .ox-ux-badge{width:20px;height:20px;font-size:10px}
 .oxeye-cards .ox-ux-notes :is(strong,p){font-size:13px}
 .oxeye-cards :is([data-ux-study="factors"],[data-ux-study="scan-running"]) .ox-ux-notes-bottom>li,
 .oxeye-cards [data-ux-study="scan-trigger"] .ox-ux-notes-top>li{grid-column:1/-1}
 .oxeye-cards .ox-ux-caption>strong{font-size:17px}
}

@container(max-width:600px){
 .oxeye-cards .ox-split{grid-template-columns:1fr;gap:24px}
 .oxeye-cards .ox-path-figure{max-width:100%!important}
 .oxeye-cards .ox-options{grid-template-columns:1fr;gap:28px}
 .oxeye-cards .ox-options>div{display:grid;grid-template-columns:1fr;gap:12px}
 .oxeye-cards .ox-options .ox-wire{max-width:340px;margin:0 auto}
 .oxeye-cards .ox-problems{grid-template-columns:1fr 1fr;gap:24px}
 .oxeye-cards .ox-notes{grid-template-columns:1fr}
 .oxeye-cards .ox-brand-grid{grid-template-columns:1fr}
 .oxeye-cards .ox-flow-row{gap:6px}
 .oxeye-cards .ox-flow-row b{font-size:13px}
 .oxeye-cards .ox-map{grid-template-columns:1fr}
 .oxeye-cards .ox-map>i{transform:rotate(90deg);justify-self:center}
}
@media(min-width:1800px){
 body.case-study.oxeye-cards{--ox-shell:min(1440px,calc(100vw - 160px));--ox-column-gap:140px}
 body.case-study.oxeye-cards>.ox{width:min(1440px,calc(100% - 160px))}
 body.oxeye-cards .oc-summary,body.oxeye-cards .case-sidebar-tools{left:max(80px,calc((100vw - 1440px)/2))}
}
@media(min-width:1000px) and (max-width:1100px){
 body.case-study.oxeye-cards{--ox-shell:calc(100vw - 64px);--ox-column-gap:40px;--ox-sidebar-width:calc((var(--ox-shell) - 40px) * .4)}
 body.case-study.oxeye-cards>.ox{width:calc(100% - 64px)}
 .oxeye-cards .oc-layout{grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr)}
 body.oxeye-cards .oc-summary,body.oxeye-cards .case-sidebar-tools{left:32px}
}
@media(max-width:999px){
 body.case-study.oxeye-cards{--ox-shell:calc(100vw - 64px)}
 body.case-study.oxeye-cards>.ox{width:calc(100% - 64px);padding-top:32px}
 .oxeye-cards .oc-layout{display:block}
 .oxeye-cards .oc-story{grid-column:auto}
 body.oxeye-cards .oc-summary{display:block;position:static;width:100%;max-height:none;overflow:visible;scrollbar-gutter:auto;margin:0 0 48px}
 body.oxeye-cards .oc-project-identity{margin-top:28px}
 body.oxeye-cards .oc-index{margin-top:28px}
 .oxeye-cards .case-sidebar-tools{left:32px}
}
@media(max-width:800px){body.case-study.oxeye-cards{--ox-shell:calc(100vw - 48px)}body.case-study.oxeye-cards>.ox{width:calc(100% - 48px)}}
@media(max-width:600px){
 body.case-study.oxeye-cards{--ox-card-padding:24px}
 body.oxeye-cards .ox-case-card .ox-lead,body.oxeye-cards .ox-story-body,body.oxeye-cards .ox-story-copy p{font-size:16px}
 .oxeye-cards .ox-story-credit{font-size:12px;gap:8px}
 .oxeye-cards .ox-story-details>summary{font-size:13px}
 body.oxeye-cards .ox-quote blockquote p{font-size:19px}
}
@media(max-width:500px){body.case-study.oxeye-cards{--ox-shell:calc(100vw - 40px)}body.case-study.oxeye-cards>.ox{width:calc(100% - 40px);padding-top:24px}}
@media(max-width:360px){body.case-study.oxeye-cards{--ox-card-padding:18px}.oxeye-cards .ox-problems{grid-template-columns:1fr}.oxeye-cards .ox-swatches{grid-template-columns:repeat(2,minmax(0,1fr))}}
