/* Shopgez AI v8.11.0 — deterministic reference portfolio */
.portfolio-proof-shell,.portfolio-featured-card,.reference-project-visual{position:relative;display:block;text-decoration:none;color:inherit;overflow:hidden;isolation:isolate}
.portfolio-proof-shell{border-radius:24px;background:#fff;border:1px solid rgba(11,27,52,.08);box-shadow:0 14px 38px rgba(5,22,52,.08);transition:transform .24s ease,box-shadow .24s ease,border-color .24s ease}
.portfolio-proof-shell:hover,.portfolio-featured-card:hover,.reference-project-card:hover{transform:translateY(-4px);box-shadow:0 24px 58px rgba(5,22,52,.14)}
.portfolio-visual-stage{position:relative;display:flex;align-items:center;justify-content:center;min-height:220px;padding:34px 28px 46px;background:
radial-gradient(circle at 14% 10%,rgba(22,114,255,.10),transparent 34%),
radial-gradient(circle at 86% 85%,rgba(111,77,255,.08),transparent 32%),
linear-gradient(145deg,#fbfcff,#f2f5fa);overflow:hidden}
.portfolio-visual-stage:before{content:"";position:absolute;inset:0;background-image:linear-gradient(rgba(11,27,52,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(11,27,52,.035) 1px,transparent 1px);background-size:28px 28px;mask-image:linear-gradient(to bottom,rgba(0,0,0,.55),transparent 80%);pointer-events:none}
.portfolio-watermark{position:absolute;right:16px;bottom:-18px;font-size:104px;line-height:1;font-weight:900;letter-spacing:-.08em;color:rgba(7,36,79,.035);pointer-events:none;user-select:none}
.portfolio-logo-wrap{position:relative;z-index:3;display:flex;align-items:center;justify-content:center;width:min(78%,340px);height:110px;padding:16px 22px;border-radius:22px;background:rgba(255,255,255,.84);border:1px solid rgba(11,27,52,.07);box-shadow:0 16px 36px rgba(5,22,52,.08);backdrop-filter:blur(10px)}
.portfolio-brand-logo{display:block;max-width:100%;max-height:78px;width:auto;height:auto;object-fit:contain;filter:drop-shadow(0 7px 13px rgba(5,22,52,.09))}
.portfolio-wordmark{display:none;color:#10294d;font-size:22px;font-weight:900;text-align:center;letter-spacing:-.03em}
.portfolio-proof-shell.is-logo-missing .portfolio-brand-logo,.portfolio-featured-card.is-logo-missing .portfolio-brand-logo{display:none}
.portfolio-proof-shell.is-logo-missing .portfolio-wordmark,.portfolio-featured-card.is-logo-missing .portfolio-wordmark{display:block}
.portfolio-live-badge{position:absolute;z-index:4;left:14px;top:14px;display:inline-flex;align-items:center;gap:7px;padding:7px 10px;border-radius:999px;background:rgba(4,18,39,.88);color:#fff;font-size:10px;font-weight:900;letter-spacing:.02em;box-shadow:0 8px 20px rgba(0,0,0,.12);backdrop-filter:blur(8px)}
.portfolio-live-badge i,.ref-project-live i{width:7px;height:7px;border-radius:50%;background:#2ed58b;box-shadow:0 0 0 5px rgba(46,213,139,.12)}
.portfolio-domain{position:absolute;z-index:4;left:16px;right:16px;bottom:13px;color:#56708f;font-size:10.5px;font-weight:800;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.portfolio-card-foot{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:16px 18px;background:#fff;border-top:1px solid rgba(11,27,52,.06)}
.portfolio-card-foot strong{min-width:0;font-size:14px;color:#132c50;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.portfolio-card-foot>span{flex:0 0 auto;color:#075dcc;font-size:11px;font-weight:900}.portfolio-card-foot b{font-size:13px}

/* Existing home / success-story grids receive stable brand-proof visuals. */
.case-visual.portfolio-proof-shell{padding:0!important;background:#fff!important}
.case-visual.portfolio-proof-shell .portfolio-visual-stage{min-height:215px}
.featured-live.portfolio-proof-shell{padding:0!important;display:block!important;background:#fff!important}
.featured-live.portfolio-proof-shell.case-study-hero-visual .portfolio-visual-stage{min-height:360px}
.featured-live.portfolio-proof-shell.case-study-hero-visual .portfolio-logo-wrap{width:min(64%,420px);height:138px}
.featured-live.portfolio-proof-shell.case-study-hero-visual .portfolio-brand-logo{max-height:98px}

/* References: selected work */
.portfolio-featured-section{background:linear-gradient(180deg,#f7f9fc 0%,#fff 100%)}
.portfolio-featured-grid{display:grid;grid-template-columns:1.18fr .91fr .91fr;gap:16px;align-items:stretch}
.portfolio-featured-card{border-radius:28px;background:#fff;border:1px solid rgba(11,27,52,.08);box-shadow:0 18px 48px rgba(5,22,52,.09);transition:transform .24s ease,box-shadow .24s ease}
.portfolio-featured-card:first-child{grid-row:span 1}
.portfolio-featured-card .portfolio-visual-stage{min-height:260px}
.portfolio-featured-card:first-child .portfolio-visual-stage{min-height:300px}
.portfolio-featured-card:first-child .portfolio-logo-wrap{width:min(72%,420px);height:124px}
.portfolio-featured-card .portfolio-card-foot{padding:17px 19px}

/* References: directory */
.reference-portfolio-section{background:#fff}
.reference-proof-strip{margin-bottom:34px}
.reference-directory-head{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:36px;align-items:end;margin-bottom:18px}
.reference-directory-head h2{margin:10px 0 10px;font-size:clamp(32px,4vw,52px);line-height:1.04;letter-spacing:-.045em}
.reference-directory-head p{margin:0;max-width:780px;color:#637189}
.reference-filter-bar{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 24px;padding:8px;border:1px solid rgba(11,27,52,.08);border-radius:20px;background:#f7f9fc}
.ref-filter-btn{appearance:none;border:1px solid transparent;border-radius:14px;background:transparent;color:#52647e;padding:10px 13px;font-size:11.5px;font-weight:900;cursor:pointer;transition:.2s}
.ref-filter-btn:hover{background:#fff;color:#0b58c5}.ref-filter-btn.is-active{background:#071a36;color:#fff;border-color:#071a36;box-shadow:0 8px 18px rgba(7,26,54,.16)}
.ref-filter-btn span{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:20px;margin-left:5px;padding:0 6px;border-radius:999px;background:rgba(255,255,255,.12);font-size:9.5px}
.reference-project-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;align-items:stretch}
.reference-project-card{display:flex;flex-direction:column;min-width:0;border-radius:26px;background:#fff;border:1px solid rgba(11,27,52,.08);box-shadow:0 13px 34px rgba(5,22,52,.07);overflow:hidden;transition:transform .24s ease,box-shadow .24s ease}
.reference-project-card[hidden]{display:none!important}
.reference-project-visual{min-height:178px;padding:24px;display:flex;align-items:center;justify-content:center;background:
radial-gradient(circle at 18% 16%,rgba(22,114,255,.09),transparent 34%),
radial-gradient(circle at 84% 78%,rgba(255,180,0,.08),transparent 36%),
linear-gradient(145deg,#fafcff,#f2f5f9);border-bottom:1px solid rgba(11,27,52,.06)}
.reference-project-visual:before{content:"";position:absolute;inset:0;background-image:linear-gradient(rgba(11,27,52,.03) 1px,transparent 1px),linear-gradient(90deg,rgba(11,27,52,.03) 1px,transparent 1px);background-size:26px 26px;mask-image:linear-gradient(to bottom,rgba(0,0,0,.55),transparent)}
.ref-project-number{position:absolute;z-index:4;left:13px;top:13px;color:#7690ad;font-size:10px;font-weight:900;letter-spacing:.08em}
.ref-project-live{position:absolute;z-index:4;right:12px;top:11px;display:inline-flex;align-items:center;gap:6px;padding:6px 8px;border-radius:999px;background:#fff;border:1px solid rgba(11,27,52,.08);color:#35506f;font-size:9.5px;font-weight:900;box-shadow:0 6px 16px rgba(5,22,52,.07)}
.ref-brand-fallback{position:absolute;z-index:1;font-size:82px;font-weight:900;letter-spacing:-.08em;color:rgba(5,31,68,.035);user-select:none}
.ref-brand-logo-wrap{position:relative;z-index:3;display:flex;align-items:center;justify-content:center;width:min(76%,260px);height:92px;padding:14px 18px;border-radius:18px;background:rgba(255,255,255,.86);border:1px solid rgba(11,27,52,.065);box-shadow:0 13px 28px rgba(5,22,52,.07)}
.ref-brand-logo{display:block;max-width:100%;max-height:64px;width:auto;height:auto;object-fit:contain;filter:drop-shadow(0 6px 10px rgba(5,22,52,.08))}
.reference-project-card.is-logo-missing .ref-brand-logo{display:none}.reference-project-card.is-logo-missing .ref-brand-logo-wrap:after{content:attr(data-brand);font-size:16px;font-weight:900;color:#18365f}
.ref-project-domain{position:absolute;left:16px;right:16px;bottom:11px;z-index:4;color:#6d7d92;font-size:9.5px;font-weight:800;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.reference-project-copy{display:flex;flex-direction:column;flex:1;padding:18px 19px 19px}
.reference-project-meta{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}
.reference-project-meta span{display:inline-flex;padding:6px 8px;border-radius:999px;background:#edf4ff;color:#075dcc;font-size:9.5px;font-weight:900;white-space:nowrap}
.reference-project-meta small{min-width:0;color:#697484;font-size:9.5px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.reference-project-copy h3{margin:0 0 8px;color:#142f53;font-size:18px;letter-spacing:-.025em}
.reference-project-copy p{margin:0;color:#64748b;font-size:12.2px;line-height:1.62;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
.reference-project-foot{display:flex;align-items:flex-end;justify-content:space-between;gap:14px;margin-top:auto;padding-top:16px}
.reference-project-foot strong{max-width:62%;color:#425a78;font-size:10.2px;line-height:1.35}
.reference-project-foot a{flex:0 0 auto;color:#075dcc;font-size:10.5px;font-weight:900;white-space:nowrap}.reference-project-foot a b{font-size:12px}
.reference-portfolio-note{margin-top:20px!important;padding:14px 16px;border-radius:16px;background:#f7f9fc;border:1px solid rgba(11,27,52,.07);text-align:center}

@media(max-width:1100px){.portfolio-featured-grid{grid-template-columns:1fr 1fr}.portfolio-featured-card:first-child{grid-column:1/-1}.reference-project-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.reference-directory-head{grid-template-columns:1fr}.reference-tools{max-width:520px}.featured-live.portfolio-proof-shell.case-study-hero-visual .portfolio-visual-stage{min-height:300px}}
@media(max-width:780px){.portfolio-featured-grid,.reference-project-grid{grid-template-columns:1fr}.portfolio-featured-card:first-child{grid-column:auto}.portfolio-featured-card .portfolio-visual-stage,.portfolio-featured-card:first-child .portfolio-visual-stage{min-height:220px}.reference-directory-head{gap:20px}.reference-filter-bar{flex-wrap:nowrap;overflow-x:auto;padding:7px;scrollbar-width:none}.reference-filter-bar::-webkit-scrollbar{display:none}.ref-filter-btn{flex:0 0 auto}.reference-project-visual{min-height:160px}.portfolio-proof-shell .portfolio-visual-stage{min-height:190px}.featured-live.portfolio-proof-shell.case-study-hero-visual .portfolio-visual-stage{min-height:240px}.portfolio-logo-wrap{height:94px}.portfolio-brand-logo{max-height:66px}}
@media(max-width:430px){.reference-project-copy{padding:16px}.reference-project-foot{align-items:flex-start;flex-direction:column}.reference-project-foot strong{max-width:none}.reference-project-foot a{width:100%;display:flex;justify-content:space-between;padding-top:8px;border-top:1px solid rgba(11,27,52,.07)}.portfolio-card-foot{padding:14px 15px}.portfolio-card-foot strong{font-size:13px}.portfolio-card-foot>span{font-size:10px}}
@media(prefers-reduced-motion:reduce){.portfolio-proof-shell,.portfolio-featured-card,.reference-project-card,.ref-filter-btn{transition:none!important}}
.ref-brand-wordmark{display:none;color:#18365f;font-size:16px;font-weight:900;line-height:1.2;text-align:center;letter-spacing:-.02em}
.reference-project-card.is-logo-missing .ref-brand-logo{display:none}
.reference-project-card.is-logo-missing .ref-brand-wordmark{display:block}
/* Fail-safe identity: a project name is always visible until the real logo is confirmed loaded. */
.portfolio-wordmark,.ref-brand-wordmark{display:block;position:absolute;inset:auto;z-index:1;color:#18365f;font-weight:900;text-align:center;letter-spacing:-.025em}
.portfolio-wordmark{font-size:20px}.ref-brand-wordmark{font-size:16px}
.portfolio-brand-logo,.ref-brand-logo{position:relative;z-index:2}
.portfolio-proof-shell.is-logo-ready .portfolio-wordmark,.portfolio-featured-card.is-logo-ready .portfolio-wordmark,.reference-project-card.is-logo-ready .ref-brand-wordmark{display:none}
.portfolio-proof-shell.is-logo-missing .portfolio-wordmark,.portfolio-featured-card.is-logo-missing .portfolio-wordmark,.reference-project-card.is-logo-missing .ref-brand-wordmark{display:block}
