/* Block: Portfolio (website examples). Layouts: frames | laptop. */

/* shared screenshot surface (real <img> or placeholder gradient) */
.ab-pf__note { margin-top: 10px; font-family: var(--mono); font-size: 12.5px; color: var(--fg-muted); }
.ab-pf__note::before { content: "// "; color: var(--accent); }
.ab-shot { position: relative; display: grid; place-items: center; overflow: hidden; width: 100%; height: 100%; }
.ab-shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ab-shot::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.10) 1px, transparent 0); background-size: 22px 22px; opacity: .5; }
.ab-shot__inner { position: relative; z-index: 1; text-align: center; padding: 20px; }
.ab-shot__inner .k { font-family: var(--mono); font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,.6); }
.ab-shot__inner .t { margin-top: 10px; font-family: "Fraunces", serif; font-weight: 500; letter-spacing: -.5px; color: #fff; font-size: clamp(20px, 2.4vw, 30px); }
.ab-shot--1 { background: linear-gradient(150deg,#12324f,#0a1a2e); }
.ab-shot--2 { background: linear-gradient(150deg,#3a2a4d,#16101f); }
.ab-shot--3 { background: linear-gradient(150deg,#123f3a,#0a1f1c); }
.ab-shot--4 { background: linear-gradient(150deg,#3f2436,#1c1017); }
.ab-shot--5 { background: linear-gradient(150deg,#243a5e,#101828); }
.ab-shot--6 { background: linear-gradient(150deg,#1f3f4d,#0f1f28); }

/* layout: browser frames */
.ab-pf__grid { margin-top: 48px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.ab-pf { text-decoration: none; display: block; transition: transform .35s; }
.ab-pf:hover { transform: translateY(-6px); }
.ab-pf__frame { display: block; position: relative; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); background: #0c1424;
  box-shadow: 0 30px 60px -40px rgba(0,0,0,.7); transition: border-color .35s, box-shadow .35s; }
.ab-pf:hover .ab-pf__frame { border-color: rgba(128,176,215,.4); box-shadow: 0 40px 80px -40px rgba(15,45,83,.6); }
.ab-pf__bar { display: flex; align-items: center; gap: 8px; padding: 11px 14px; background: #0a1120; border-bottom: 1px solid var(--border); }
.ab-pf__dots { display: inline-flex; gap: 6px; } .ab-pf__dots i { width: 9px; height: 9px; border-radius: 999px; display: block; }
.ab-pf__dots i:nth-child(1){ background:#e0625b; } .ab-pf__dots i:nth-child(2){ background:#e6b455; } .ab-pf__dots i:nth-child(3){ background:#5fb57a; }
.ab-pf__url { flex: 1; margin-left: 6px; font-family: var(--mono); font-size: 11px; color: #7f97b5; background: #060b16; border: 1px solid var(--border);
  border-radius: 999px; padding: 5px 12px; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ab-pf__shot { display: block; aspect-ratio: 16/10; }
.ab-pf__tag { position: absolute; top: 52px; left: 16px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 1px; text-transform: uppercase;
  color: var(--accent); background: rgba(6,10,20,.66); backdrop-filter: blur(8px); padding: 6px 11px; border-radius: 999px; border: 1px solid rgba(128,176,215,.3); }
.ab-pf__meta { display: flex; align-items: center; justify-content: space-between; padding: 16px 6px 0; }
.ab-pf__name { font-size: 16px; font-weight: 600; color: var(--fg); }
.ab-pf__view { font-family: var(--mono); font-size: 12px; color: var(--accent); display: inline-flex; align-items: center; gap: 6px; }
.ab-pf:hover .ab-pf__view { text-decoration: underline; }

/* layout: laptop mockups */
.ab-lap__grid { margin-top: 48px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 48px 40px; }
.ab-lap { text-decoration: none; display: block; transition: transform .4s; }
.ab-lap:hover { transform: translateY(-6px); }
.ab-lap__device { display: block; filter: drop-shadow(0 40px 60px rgba(0,0,0,.5)); }
.ab-lap__screen { display: block; aspect-ratio: 16/10; border: 10px solid #0e1420; border-bottom: 0; border-radius: 16px 16px 0 0; overflow: hidden; background: #0c1424; position: relative; }
.ab-lap__screen .ab-shot { position: absolute; inset: 0; }
.ab-lap__base { display: block; position: relative; height: 16px; background: linear-gradient(#171f2e,#0a0e16); border-radius: 0 0 8px 8px; }
.ab-lap__deck { display: block; width: 116%; margin-left: -8%; height: 12px; background: linear-gradient(#10151f,#070a11); border-radius: 0 0 14px 14px; box-shadow: inset 0 2px 3px rgba(255,255,255,.04); }
.ab-lap__notch { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 90px; height: 8px; background: #05080e; border-radius: 0 0 8px 8px; }
.ab-lap__meta { margin-top: 22px; text-align: center; }
.ab-lap__name { display: block; font-family: "Fraunces", serif; font-size: 21px; font-weight: 500; letter-spacing: -.4px; color: var(--fg); }
.ab-lap__view { display: block; margin-top: 4px; font-family: var(--mono); font-size: 12px; color: var(--accent); }

@media (max-width: 960px) { .ab-pf__grid { grid-template-columns: repeat(2, 1fr); } .ab-lap__grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .ab-pf__grid { grid-template-columns: 1fr; } }
