/* User-selected reference: exact violet/pink accents and four-panel composition. */
.ai-ref-hero{padding:34px 24px 24px;background:#111;color:#fff;border-radius:24px;margin:0}
.ai-ref-eyebrow{text-align:center;color:#d5d2da;font-size:12px;letter-spacing:.1em;text-transform:uppercase;margin:0 0 16px}
.ai-ref-hero h1{font-size:clamp(32px,3.4vw,56px);line-height:1.12;letter-spacing:-.035em;font-weight:750;text-align:center;margin:0 auto 42px;max-width:1000px}
.ai-ref-hero h1 span{display:block;color:#f563e2;margin-top:5px}
.ai-ref-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:auto auto;gap:16px;align-items:stretch}
.ai-ref-card{min-width:0;padding:26px;border-radius:26px;background:#f3f3f6;color:#29282d;position:relative}
.ai-ref-card h2{font-size:clamp(19px,1.8vw,27px);line-height:1.2;letter-spacing:-.025em;font-weight:600;margin:0}
.ai-ref-card p{font-size:15px;line-height:1.5;margin:14px 0 0;color:inherit}
.ai-ref-product,.ai-ref-design{grid-row:span 2}
.ai-ref-product{display:flex;flex-direction:column;justify-content:space-between;text-align:center;gap:20px}
.ai-ref-product>p{margin:0;font-size:15px}
.ai-ref-photos{display:grid;grid-template-columns:1fr 1fr;gap:0;align-items:center;margin:6px 0 22px}
.ai-ref-photos img{width:100%;height:auto;object-fit:contain;box-shadow:0 12px 24px #22212b22;border-radius:14px}
.ai-ref-photos img:first-child{transform:rotate(-7deg) translateY(14px);position:relative;z-index:1}
.ai-ref-photos img:last-child{transform:rotate(6deg)}
.ai-ref-design{display:flex;flex-direction:column;justify-content:flex-end;padding-top:26px;text-align:center}
.ai-ref-palette{position:relative;min-height:230px;margin:0 0 74px;flex:1}
.ai-ref-colors{position:absolute;inset:20% 0 0 15%;display:grid;grid-template-columns:repeat(16,minmax(0,1fr));grid-template-rows:repeat(12,1fr);transform:rotate(-6deg);border-radius:7px;overflow:hidden}
.ai-ref-colors i{display:block;min-width:0}
.ai-ref-palette>span{display:grid;place-items:center;position:absolute;width:42%;aspect-ratio:1.3;border-radius:9px;font-size:clamp(13px,1.4vw,20px);font-weight:600;box-shadow:0 12px 24px #24202f18}
.ai-ref-purple{background:#8e54fe;color:#fff;left:-2%;top:0;transform:rotate(6deg)}
.ai-ref-pink{background:#f563e2;color:#29282d;left:13%;top:29%;transform:rotate(7deg)}
.ai-ref-figma{width:80px;height:92px;position:absolute;left:20px;top:46%;transform:rotate(-15deg);filter:drop-shadow(4px 7px 3px #0002)}
.ai-ref-design h2{font-size:clamp(21px,1.9vw,28px)}
.ai-ref-design p{font-size:15px}
.ai-ref-tools{background:#8e54fe;color:#fff;display:flex;flex-direction:column;justify-content:space-between;gap:14px}
.ai-ref-tools ul{display:grid;grid-template-columns:repeat(3,56px);justify-content:end;gap:10px;list-style:none;margin:-8px -8px 4px 0;padding:0}
.ai-ref-tools li{display:grid;place-items:center;background:#fff;border-radius:15px;width:56px;height:56px;padding:6px;box-shadow:0 6px 12px #31175025}
.ai-ref-tools li:nth-child(2n){transform:rotate(9deg)}
.ai-ref-tools li:nth-child(2n+1){transform:rotate(-8deg)}
.ai-ref-tools img{display:block;width:44px;height:44px;object-fit:contain}
.ai-ref-tools h2{font-size:23px;font-weight:700}
.ai-ref-tools p{font-size:19px;font-weight:700;line-height:1.35;margin:0}
.ai-ref-count{background:#f563e2;color:#29202d;display:flex;flex-direction:column;justify-content:flex-end;min-height:205px;padding-top:94px;isolation:isolate}
.ai-ref-count strong{font-size:clamp(40px,4.6vw,68px);font-weight:700;line-height:1.05;letter-spacing:-.045em;white-space:nowrap;position:relative;z-index:1}
.ai-ref-count h2{font-size:23px;margin-top:10px}
.ai-ref-count p{font-size:14px;max-width:23ch;margin-top:8px}
.ai-ref-count-art{position:absolute;top:22px;right:18px;display:flex;gap:0;align-items:center;transform:rotate(7deg);opacity:.9}
.ai-ref-count-art span{padding:10px 12px;background:#fff;color:#29202d;font-size:12px;border-radius:7px;box-shadow:0 5px 12px #71236520}
.ai-ref-count-art span+span{margin-left:-8px;margin-top:24px;background:#fbd9f7}
.ai-ref-count-art span:last-child{margin-top:48px;background:#8e54fe;color:#fff;font-size:14px;font-weight:700}
.ai-ref-actions{display:flex;justify-content:center;align-items:center;gap:24px;flex-wrap:wrap;margin-top:28px}
.ai-ref-actions .ai-text-link{color:#ded4ff!important}
.ai-ref-hero :is(a,img[tabindex]):focus-visible{outline-color:#d6ef4d}
@media(max-width:1100px){.ai-ref-grid{gap:12px}.ai-ref-card{padding:20px}.ai-ref-tools ul{grid-template-columns:repeat(3,46px);gap:8px}.ai-ref-tools li{width:46px;height:46px;padding:4px}.ai-ref-tools img{width:38px;height:38px}.ai-ref-palette{min-height:180px}.ai-ref-figma{width:64px;left:14px}.ai-ref-count-art{right:10px}.ai-ref-count-art span{font-size:10px;padding:9px}}
@media(max-width:850px){.ai-ref-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ai-ref-product,.ai-ref-design{grid-row:auto}.ai-ref-tools,.ai-ref-count{min-height:250px}.ai-ref-card h2{font-size:23px}.ai-ref-figma{top:43%}.ai-ref-photos{margin-top:24px}.ai-ref-count strong{font-size:58px}.ai-ref-palette>span{font-size:18px}}
@media(max-width:560px){.ai-ref-hero{padding:26px 16px 22px;border-radius:20px}.ai-ref-hero h1{font-size:clamp(29px,7.5vw,40px);margin-bottom:28px}.ai-ref-grid{grid-template-columns:minmax(0,1fr);gap:14px}.ai-ref-card{padding:26px;border-radius:24px}.ai-ref-product{gap:18px}.ai-ref-photos{margin-bottom:20px}.ai-ref-design{min-height:430px}.ai-ref-palette{min-height:210px;margin-bottom:70px}.ai-ref-figma{top:47%;width:76px}.ai-ref-tools ul{grid-template-columns:repeat(3,56px);gap:12px;margin:0 0 10px}.ai-ref-tools li{width:56px;height:56px}.ai-ref-tools img{width:44px;height:44px}.ai-ref-tools p{font-size:20px}.ai-ref-count{min-height:240px;padding-top:110px}.ai-ref-count strong{font-size:64px}.ai-ref-actions{gap:12px;margin-top:24px}}
@media(prefers-reduced-motion:reduce){.ai-ref-photos img:hover,.ai-ref-photos img:active{transform:none}}

.ai-ref-purple b{font:600 13px/1.3 Inter,Arial,sans-serif;background:#4d238d;padding:6px 7px;border-radius:5px}.ai-ref-count-art span:last-child{background:#4d238d}

/* Latest review: no repeated author label; narrower reference proportions. */
.ai-ref-hero{max-width:1080px;margin-inline:auto;padding:20px 0 0;border-radius:0;background:transparent}
.ai-ref-hero h1{font-size:clamp(32px,3.1vw,48px);max-width:900px;margin-bottom:36px}
.ai-ref-grid{gap:14px}
.ai-ref-card{padding:22px;border-radius:24px}
.ai-ref-card h2{font-size:22px;line-height:1.25}
.ai-ref-card p{font-size:14px;line-height:1.5}
.ai-ref-product{justify-content:flex-start;gap:16px}
.ai-ref-product>p{font-size:14px}
.ai-ref-photos{margin:14px 0 18px;gap:0}
.ai-ref-palette{min-height:175px;margin-bottom:48px}
.ai-ref-design h2{font-size:23px}
.ai-ref-design p{font-size:14px}
.ai-ref-figma{width:70px;height:80px;top:43%;left:14px}
.ai-ref-tools{gap:12px}
.ai-ref-tools ul{grid-template-columns:repeat(3,46px);gap:8px;margin:0 0 6px}
.ai-ref-tools li{width:46px;height:46px;padding:4px}
.ai-ref-tools img{width:38px;height:38px}
.ai-ref-tools h2{font-size:20px;font-weight:700}
.ai-ref-tools p{font-size:19px;line-height:1.35;font-weight:700}
.ai-ref-count{color:#fff;min-height:190px;padding-top:76px}
.ai-ref-count strong{font-size:clamp(44px,4vw,60px);color:#fff}
.ai-ref-count h2{font-size:22px;color:#fff;margin-top:8px}
.ai-ref-count p{font-size:14px;color:#fff;margin-top:7px}
.ai-ref-count-art{top:16px;right:14px}
.ai-ref-count-art span{font-size:11px;padding:8px 10px}
.ai-ref-count-art span:last-child{font-size:12px}
@media(max-width:850px){.ai-ref-hero{max-width:700px}.ai-ref-palette{min-height:200px}.ai-ref-card{padding:24px}.ai-ref-count{min-height:225px}.ai-ref-count strong{font-size:58px}}
@media(max-width:560px){.ai-ref-hero{padding-top:6px}.ai-ref-hero h1{font-size:clamp(29px,7.5vw,40px);margin-bottom:26px}.ai-ref-grid{gap:14px}.ai-ref-design{min-height:390px}.ai-ref-palette{min-height:190px}.ai-ref-count{padding-top:96px;min-height:240px}.ai-ref-count strong{font-size:64px}.ai-ref-tools ul{grid-template-columns:repeat(3,56px);gap:12px}.ai-ref-tools li{width:56px;height:56px}.ai-ref-tools img{width:44px;height:44px}}

/* Copy only: keep menu scrolling without a visible scrollbar. */
html body.ai-copy-page .portfolio-contents{scrollbar-width:none;-ms-overflow-style:none}
html body.ai-copy-page .portfolio-contents::-webkit-scrollbar{display:none;width:0;height:0}

/* Header video action: outline only, matching the neighbouring button. */
.ai-copy-page .ai-ref-actions .ai-video-outline{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:11px 20px;border:1px solid var(--ink);border-radius:999px;background:transparent;color:var(--ink);font:700 14px/1.4 Inter,Arial,sans-serif;text-decoration:none;text-align:center}
.ai-copy-page .ai-ref-actions .ai-video-outline:hover,.ai-copy-page .ai-ref-actions .ai-video-outline:active{background:transparent;color:var(--ai-link);border-color:var(--ai-link);text-decoration:none}
.ai-copy-page .ai-ref-actions .ai-video-outline:focus-visible{outline:3px solid var(--ai-link);outline-offset:4px}

/* One content axis for the reference header, section headings and project galleries. */
html body.ai-copy-page .wrap.ai-page{width:min(calc(100% - 48px),1780px);max-width:1780px;margin-inline:auto}
html body.ai-copy-page .ai-ref-hero{width:100%;max-width:none;margin-inline:0}
@media(max-width:600px){html body.ai-copy-page .wrap.ai-page{width:calc(100% - 30px)}}

/* Header seal uses the exact blue treatment from variant 10. */

/* Direct links to each photo series and one shared video section. */
.ai-copy-page .ai-section-actions{flex-direction:column;align-items:center;gap:20px}
.ai-generation-actions{width:100%;min-width:0}
.ai-generation-label{margin:0 0 14px;text-align:center;font-size:19px;font-weight:700;color:var(--ink)}
.ai-generation-links{display:flex;flex-wrap:wrap;justify-content:center;gap:12px;min-width:0}
.ai-generation-links .ai-button{max-width:100%;white-space:normal;text-align:center}

.ai-category{margin-top:36px;scroll-margin-top:calc(var(--portfolio-header-height,160px) + 24px)}
.ai-category>.ai-section-head{margin-bottom:8px}
.ai-category>.ai-section-head h3{margin:0;font-size:clamp(24px,2.5vw,32px);line-height:1.25;color:var(--ink)}
