/* Intelligent Visual UI — progressive enhancement for public portfolio visuals */
:root{--iv-blue:#366df5;--iv-ink:#18233c;--iv-line:#e5eaf2;--iv-glow:rgba(63,112,229,.18)}
.iv-case-gallery{padding-top:6px!important;padding-bottom:42px!important}
.iv-shell{width:min(1040px,calc(100% - 36px));margin:0 auto}
.iv-overline{font-size:.68rem;letter-spacing:.15em;font-weight:800;color:#497bcb;text-transform:uppercase;margin:0 0 8px}
.iv-section-heading{display:flex;align-items:end;justify-content:space-between;gap:24px;margin-bottom:22px}
.iv-section-heading h2{font-size:clamp(1.6rem,3.6vw,2.4rem);letter-spacing:-.045em;line-height:1.16;margin:0 0 6px}
.iv-section-heading p{font-size:.86rem;color:#6c7890;line-height:1.55;max-width:610px;margin:0}
.iv-concept-note{display:flex;align-items:center;gap:8px;white-space:nowrap;color:#65718c;background:#fff;border:1px solid #dfe6f1;padding:8px 11px;border-radius:50px;font-size:.7rem;font-weight:700}
.iv-concept-note:before{content:"";width:7px;height:7px;border-radius:50%;background:#8397b3}
.iv-gallery{border:1px solid #dde5f2;border-radius:26px;padding:12px;background:linear-gradient(145deg,#fff,#f5f8fc);box-shadow:0 24px 65px rgba(31,60,115,.065);position:relative}
.iv-topline{display:flex;justify-content:space-between;gap:16px;align-items:center;padding:5px 7px 14px}
.iv-tabs{display:flex;gap:5px;padding:4px;background:#eef2f8;border-radius:12px;flex-wrap:wrap}
.iv-tab{border:0;border-radius:9px;background:transparent;color:#63718b;font:700 .73rem/1.2 inherit;font-family:inherit;font-size:.73rem;font-weight:740;padding:10px 13px;cursor:pointer;transition:.18s ease;white-space:nowrap}
.iv-tab[aria-selected="true"]{background:#fff;color:#1c3e8b;box-shadow:0 4px 13px rgba(31,61,108,.095)}
.iv-tab:hover{color:#1d3b80}
.iv-actions{display:flex;gap:7px}
.iv-action{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:34px;padding:0 11px;border:1px solid #dbe3f0;border-radius:10px;background:#fff;color:#465c80;font-family:inherit;font-weight:760;font-size:.74rem;cursor:pointer;transition:transform .16s,background .16s}
.iv-action:hover{background:#eff5ff;transform:translateY(-1px)}
.iv-action:focus-visible,.iv-tab:focus-visible,.iv-preview-trigger:focus-visible{outline:3px solid #6896ff;outline-offset:3px}
.iv-action svg{height:15px;width:15px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.iv-stage{overflow:hidden;border-radius:19px;position:relative;min-height:385px;background:linear-gradient(135deg,#eaf0fc,#f1f5ff 58%,#eef3f9);padding:24px}
.iv-stage[hidden]{display:none!important}
.iv-stage:before{content:"";position:absolute;inset:-28% -5% auto auto;width:420px;height:420px;background:radial-gradient(circle,var(--iv-glow),transparent 70%);pointer-events:none}
.iv-screen{max-width:880px;margin:auto;position:relative;border-radius:16px;background:#fff;box-shadow:0 22px 55px rgba(35,63,121,.13),0 0 0 1px rgba(28,63,113,.04);min-height:340px;overflow:hidden}
.iv-browser{height:34px;display:flex;align-items:center;justify-content:space-between;padding:0 12px;background:#f6f8fc;border-bottom:1px solid #e8edf5}
.iv-browser-dots{display:flex;gap:5px}.iv-browser-dots i{width:7px;height:7px;border-radius:50%;background:#d8dfeb}.iv-browser-dots i:first-child{background:#f3b6b2}.iv-browser-dots i:nth-child(2){background:#f6d695}.iv-browser-dots i:nth-child(3){background:#a3dcb9}
.iv-browser-label{font-size:.59rem;font-weight:760;letter-spacing:.09em;text-transform:uppercase;color:#7888a3}
.iv-window{display:grid;grid-template-columns:160px minmax(0,1fr);min-height:305px}
.iv-rail{background:#f8faff;border-right:1px solid #edf1f8;padding:18px 13px;display:flex;flex-direction:column;gap:7px}
.iv-brand{display:flex;align-items:center;gap:8px;font-size:.72rem;font-weight:810;color:#1b2a4c;margin-bottom:16px}
.iv-brand:before{content:"";width:22px;height:22px;background:linear-gradient(135deg,#7ea6ff,#3b62cd);border-radius:7px;box-shadow:0 4px 9px rgba(56,105,210,.19)}
.iv-railitem{padding:8px 10px;font-size:.66rem;color:#7887a0;border-radius:8px;font-weight:720}
.iv-railitem.active{background:#e8efff;color:#2f5dbc}
.iv-screen-body{padding:19px 24px 22px;min-width:0}
.iv-screen-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:16px}
.iv-screen-head strong{font-size:1rem;letter-spacing:-.025em;color:#1d2c4b}
.iv-demo-label{background:#eef4ff;color:#5272ba;font-size:.57rem;font-weight:750;letter-spacing:.08em;text-transform:uppercase;border-radius:20px;padding:7px 9px}
.iv-primary-cards{display:grid;grid-template-columns:1.55fr 1fr;gap:13px}
.iv-workcard{border:1px solid #e8edf5;border-radius:13px;padding:17px 16px;background:linear-gradient(150deg,#fff,#fcfdff);min-width:0}
.iv-workcard h3{color:#1b2c4d;font-size:.78rem;margin:0 0 10px;letter-spacing:-.01em}
.iv-workcard p{font-size:.63rem;color:#7a88a0;line-height:1.45;margin:0 0 10px}
.iv-work-item{display:flex;gap:9px;align-items:center;padding:11px 0;border-top:1px solid #eff2f8;min-width:0}
.iv-work-item b{flex:1;font-size:.67rem;color:#334564;line-height:1.35;font-weight:720}
.iv-work-status{white-space:nowrap;border-radius:99px;padding:5px 7px;font-size:.53rem;font-weight:790;background:#edf4ff;color:#4d74ba}
.iv-work-status.done{background:#e9f7ef;color:#319365}.iv-work-status.next{background:#fff5e6;color:#aa752d}
.iv-work-icon{display:grid;place-items:center;flex-shrink:0;width:22px;height:22px;background:#eef4ff;color:#4778d5;border-radius:7px;font-size:.68rem;font-weight:850}
.iv-signal{display:flex;justify-content:space-between;gap:12px;padding:9px 0;border-bottom:1px solid #eff2f8;color:#647590;font-size:.64rem}
.iv-signal strong{color:#274778;font-size:.63rem;text-align:right}
.iv-progress-track{background:#eaf0f8;height:6px;border-radius:10px;margin-top:13px;overflow:hidden}.iv-progress-fill{height:100%;width:63%;background:linear-gradient(90deg,#8ba8ff,#5178de);border-radius:10px}
.iv-timeline{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:12px}
.iv-step{padding:13px;background:#fff;border:1px solid #e4ebf5;border-radius:12px;position:relative}
.iv-step .iv-step-num{display:grid;place-items:center;width:27px;height:27px;border-radius:9px;background:#e9f0ff;color:#446fcd;font-weight:850;font-size:.72rem;margin-bottom:12px}
.iv-step strong{display:block;font-size:.69rem;line-height:1.25;color:#2b3e60;margin-bottom:6px}
.iv-step small{display:block;font-size:.6rem;color:#8a97aa;line-height:1.4}
.iv-step.featured{border-color:#9cbaf3;box-shadow:0 4px 15px rgba(45,92,178,.1)}
.iv-step.featured:after{content:"FOCUS";position:absolute;right:9px;top:10px;color:#4c76bc;font-size:.52rem;font-weight:850;letter-spacing:.06em}
.iv-small-band{font-size:.65rem;font-weight:710;border-radius:10px;background:#eef5ff;color:#3f63a3;padding:12px}
.iv-bars{height:134px;display:flex;align-items:end;gap:11px;padding:12px 8px 22px;border-bottom:1px solid #e4ebf5}
.iv-bar{height:var(--h);flex:1;background:linear-gradient(180deg,#749af3,#c2d3fc);border-radius:6px 6px 2px 2px;position:relative;min-width:8px}
.iv-bar:nth-child(2n){background:linear-gradient(180deg,#86c3b2,#cfebe2)}
.iv-bar:after{content:attr(data-label);position:absolute;top:calc(100% + 5px);left:50%;transform:translateX(-50%);font-size:.54rem;color:#8290a6}
.iv-insight-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px}
.iv-insight-pill{font-size:.64rem;font-weight:750;padding:10px 12px;background:#f6f9ff;color:#5670a1;border-radius:10px;margin-bottom:8px}
.iv-gallery-caption{padding:15px 9px 5px;display:flex;justify-content:space-between;align-items:start;gap:16px}
.iv-gallery-caption h3{font-size:1.02rem;color:#1d2a47;margin:0 0 5px}
.iv-gallery-caption p{font-size:.8rem;color:#6c7890;max-width:710px;margin:0;line-height:1.5}
.iv-counter{color:#8190a5;white-space:nowrap;font-size:.7rem;font-weight:780;padding-top:4px}
.iv-bottomline{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:10px}
.iv-caption-note{color:#8290a8;font-size:.68rem}
.iv-home-preview-shell .project-visual{height:auto!important;min-height:315px;max-height:72vh;transform:none!important}
.iv-home-preview-shell .project-card{max-width:850px;width:100%;margin:auto;padding:13px;background:#fff;border:1px solid #dfe6f4;border-radius:20px}
.iv-home-preview-shell .project-visual>*{pointer-events:none}
.project-visual{position:relative}
.iv-preview-trigger{z-index:7;position:absolute;top:13px;right:13px;display:flex;align-items:center;gap:6px;border:1px solid rgba(218,229,245,.9);border-radius:99px;background:rgba(255,255,255,.94);color:#2f5289;font:760 .7rem/1.1 inherit;font-family:inherit;font-size:.7rem;font-weight:780;padding:9px 12px;box-shadow:0 8px 22px rgba(19,44,88,.12);cursor:pointer;backdrop-filter:blur(8px);transition:transform .18s ease}
.iv-preview-trigger:hover{transform:translateY(-2px);background:#fff}
.iv-preview-trigger svg{height:14px;width:14px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.iv-modal{position:fixed;inset:0;z-index:10000;background:rgba(14,25,48,.82);backdrop-filter:blur(13px);display:grid;place-items:center;padding:22px;overflow:auto}
.iv-modal[hidden]{display:none!important}
.iv-modal-dialog{width:min(1100px,100%);background:linear-gradient(150deg,#fff,#f3f6fd);border-radius:24px;box-shadow:0 28px 90px rgba(1,7,23,.33);padding:16px;max-height:calc(100dvh - 40px);overflow-y:auto;outline:0}
.iv-modal-bar{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:6px 7px 14px}
.iv-modal-title{font-size:clamp(.85rem,2.2vw,1.08rem);font-weight:800;letter-spacing:-.02em;color:#1e304e}
.iv-modal-content .iv-stage{min-height:0}
.iv-modal-content .iv-screen{max-width:960px}
.iv-modal-content .iv-home-preview-shell .project-visual{min-height:370px}
.iv-modal-footer{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:13px 7px 3px;font-size:.75rem;color:#738198}
.iv-modal-footer a{background:#286ce9;color:#fff;border-radius:10px;padding:10px 14px;font-size:.75rem;font-weight:750;text-decoration:none}
.iv-modal-close{font-size:1rem;min-width:36px;padding:0}
.iv-sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
body.iv-modal-open{overflow:hidden}
@media(max-width:760px){
 .iv-section-heading{display:block}.iv-concept-note{display:inline-flex;margin-top:14px}
 .iv-topline{align-items:start}.iv-tabs{gap:3px}.iv-tab{font-size:.66rem;padding:9px 8px}
 .iv-stage{min-height:310px;padding:13px}.iv-screen{min-height:280px}.iv-window{grid-template-columns:105px minmax(0,1fr);min-height:270px}
 .iv-rail{padding:11px 6px}.iv-brand{font-size:.58rem;margin-bottom:6px}.iv-railitem{font-size:.57rem;padding:7px 5px}
 .iv-screen-body{padding:13px 10px}.iv-screen-head strong{font-size:.79rem}.iv-demo-label{font-size:.5rem}
 .iv-primary-cards{gap:7px}.iv-workcard{padding:11px 8px}.iv-workcard h3{font-size:.7rem}
 .iv-work-item{gap:4px}.iv-work-item b,.iv-work-status{font-size:.53rem}.iv-work-icon{display:none}
 .iv-signal,.iv-signal strong{font-size:.55rem}.iv-step{padding:9px 6px}.iv-step strong{font-size:.6rem}.iv-step small{font-size:.51rem}
 .iv-timeline{gap:5px}.iv-action{font-size:.66rem}.iv-gallery-caption{display:block}.iv-counter{display:inline-block;margin-top:7px}
 .iv-home-preview-shell .project-visual{min-height:270px;max-height:55vh}
}
@media(max-width:430px){
 .iv-topline{display:block}.iv-actions{justify-content:end;margin-top:8px}
 .iv-window{grid-template-columns:80px minmax(0,1fr)}.iv-railitem{font-size:.48rem}.iv-brand{font-size:.5rem}
 .iv-primary-cards{grid-template-columns:1fr}.iv-workcard:nth-child(2){display:none}
 .iv-screen-head{display:block}.iv-demo-label{display:inline-block;margin-top:6px}
 .iv-step:nth-child(3){display:none}.iv-timeline{grid-template-columns:1fr 1fr}
 .iv-insight-grid{grid-template-columns:1fr}.iv-insight-grid>.iv-workcard:last-child{display:none}
 .iv-modal{padding:8px}.iv-modal-dialog{max-height:calc(100dvh - 16px);padding:10px}
}
@media(prefers-reduced-motion:reduce){.iv-tab,.iv-action,.iv-preview-trigger{transition:none!important}}
