/* s06 AI 에이전트 포트폴리오 전용. 바탕(토큰·nav·btn·sec·kicker·panel·pipe)은 /s06/style.css 에서 온다 */
.pf { --ch: 320px; }
.pf-hero { position: relative; padding: 72px 0 64px; background: var(--bg); overflow: hidden; }
.pf-hero::before { content: ""; position: absolute; right: -120px; top: -140px; width: 420px; height: 420px; border-radius: 50%; background: var(--mint); border: var(--bw) solid var(--ink); opacity: .9; }
.pf-hero::after { content: ""; position: absolute; left: -80px; bottom: -160px; width: 300px; height: 300px; border-radius: 50%; background: var(--pink); border: var(--bw) solid var(--ink); }
.pf-hero .wrap { position: relative; z-index: 1; }
.pf-hero h1 { font-family: var(--hd); font-weight: 800; font-size: clamp(32px, 5vw, 64px); line-height: 1.12; letter-spacing: -0.03em; max-width: 980px; }
.pf-hero h1 em { font-style: normal; background: var(--yellow); border: var(--bw) solid var(--ink); border-radius: 12px; padding: 0 14px; box-shadow: 5px 5px 0 var(--ink); display: inline-block; line-height: 1.15; margin: .12em calc(.16em + 5px) calc(.14em + 5px) .06em; }
.pf-hero .intro { margin-top: 26px; max-width: 820px; font-size: clamp(16px, 1.4vw, 19px); line-height: 1.75; font-weight: 500; }
.pf-hero .intro b { background: var(--ink); color: var(--paper); padding: 1px 8px; border-radius: 6px; font-weight: 700; }
.pf-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 40px; }
.pf-stats li { background: var(--paper); border: var(--bw) solid var(--ink); border-radius: var(--r); box-shadow: var(--sh); padding: 18px 18px 20px; }
.pf-stats b { display: block; font-family: var(--hd); font-weight: 800; font-size: clamp(36px, 4vw, 54px); line-height: 1; letter-spacing: -0.04em; }
.pf-stats b small { font-size: .5em; margin-left: 2px; }
.pf-stats span { display: block; margin-top: 10px; font-weight: 700; font-size: 14.5px; line-height: 1.45; }

.pf-pipe .pipe-box { padding: 28px; box-shadow: var(--sh-lg); }
.roles-t, .tools-t { margin-top: 48px; font-family: var(--hd); font-weight: 800; font-size: 24px; letter-spacing: -0.02em; }
.srcs { margin-top: 16px; }
.srcs li { background: var(--paper); }
.roles { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 18px; }
.role { background: var(--paper); border: var(--bw) solid var(--ink); border-radius: var(--r); box-shadow: var(--sh); padding: 24px 26px 26px; }
.role h3 { display: inline-block; font-family: var(--hd); font-weight: 800; font-size: 20px; padding: 2px 14px; border: var(--bw) solid var(--ink); border-radius: 8px; background: var(--pink); transform: rotate(-2deg); box-shadow: 3px 3px 0 var(--ink); }
.role-1 h3 { background: var(--mint); transform: rotate(2deg); }
.role ul { margin-top: 18px; display: grid; gap: 10px; }
.role li { position: relative; padding-left: 26px; font-weight: 600; font-size: 16px; }
.role li::before { content: ""; position: absolute; left: 0; top: .45em; width: 12px; height: 12px; background: var(--yellow); border: 2px solid var(--ink); border-radius: 3px; }
.role-1 li::before { background: var(--violet); border-radius: 50%; }

.toc { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.toc a { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border: 2px solid var(--ink); border-radius: 999px; background: var(--paper); font-weight: 700; font-size: 15px; text-decoration: none; transition: background .12s; }
.toc a:hover { background: var(--yellow); }
.toc small { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--ink); color: var(--paper); font-size: 12px; font-weight: 800; }

.ty { margin-top: 56px; padding-top: 36px; border-top: var(--bw) solid var(--ink); scroll-margin-top: calc(var(--navh) + 16px); }
.ty-head { display: flex; align-items: flex-start; gap: 22px; max-width: 960px; margin-bottom: 28px; }
.ty-head .num { flex: none; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--c); border: var(--bw) solid var(--ink); box-shadow: 4px 4px 0 var(--ink); font-family: var(--hd); font-weight: 800; font-size: 24px; transform: rotate(-8deg); }
.ty-head h3 { font-family: var(--hd); font-weight: 800; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.2; letter-spacing: -0.02em; }
.ty-head p { margin-top: 10px; font-size: 16.5px; line-height: 1.7; font-weight: 500; }

.cards { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.card { flex: none; display: flex; flex-direction: column; text-decoration: none; color: inherit; border: var(--bw) solid var(--ink); border-radius: var(--r); background: var(--paper); box-shadow: 3px 3px 0 var(--ink); overflow: hidden; transition: transform .15s ease, box-shadow .15s ease; }
.card:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); }
.card:focus-visible { outline-offset: 4px; }
.card .shot { position: relative; display: block; height: var(--ch); aspect-ratio: 9 / 16; background: var(--ink); overflow: hidden; }
.card.h .shot { aspect-ratio: 16 / 9; }
.card .shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.card:hover .shot img { transform: scale(1.03); }
.card .play { position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px; display: grid; place-items: center; border-radius: 50%; background: var(--c); border: var(--bw) solid var(--ink); box-shadow: 4px 4px 0 var(--ink); opacity: 0; transform: scale(.8); transition: opacity .15s, transform .15s; }
.card .play svg { width: 26px; height: 26px; fill: var(--ink); margin-left: 3px; }
.card:hover .play, .card:focus-visible .play { opacity: 1; transform: scale(1); }
.card .kind { position: absolute; left: 10px; top: 10px; padding: 3px 10px; border-radius: 999px; background: var(--paper); border: 2px solid var(--ink); font-weight: 800; font-size: 12px; letter-spacing: .02em; }
.card .cap { display: flex; flex-direction: column; gap: 6px; padding: 14px 14px 16px; width: 100%; border-top: var(--bw) solid var(--ink); }
.card.v .cap { width: calc(var(--ch) * 9 / 16); }
.card.h .cap { width: calc(var(--ch) * 16 / 9); }
.card .cap b { font-family: var(--hd); font-weight: 800; font-size: 15.5px; line-height: 1.35; letter-spacing: -0.01em; }
.card.h .cap b { font-size: 19px; }
.card .cap span { font-size: 13.5px; line-height: 1.5; font-weight: 500; }
.card.h .cap span { font-size: 15px; }
.card .cap small { margin-top: 4px; font-size: 12px; font-weight: 700; opacity: .7; }

.hows { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.how { background: var(--paper); border: var(--bw) solid var(--ink); border-radius: var(--r); box-shadow: var(--sh); padding: 24px 24px 26px; }
.how h3 { font-family: var(--hd); font-weight: 800; font-size: 21px; line-height: 1.3; letter-spacing: -0.02em; }
.how p { margin-top: 10px; font-size: 16px; }
.tools { margin-top: 16px; }
.pf-cta .wrap { text-align: center; }
.pf-cta h2 { font-family: var(--hd); font-weight: 800; font-size: clamp(28px, 4vw, 48px); letter-spacing: -0.03em; line-height: 1.2; }
.pf-cta .lead { margin: 16px auto 0; }
.pf-cta .btn.big { margin-top: 32px; }

@media (max-width: 1180px) { .pf { --ch: 280px; } }
@media (max-width: 980px) {
  .pf { --ch: 260px; }
  .pf-stats { grid-template-columns: repeat(2, 1fr); }
  .hows { grid-template-columns: 1fr; }
}
@media (max-width: 860px) { .pf-hero::before, .pf-hero::after { display: none; } }
@media (max-width: 720px) {
  .roles { grid-template-columns: 1fr; }
  .cards { gap: 16px; }
  .card { width: calc(50% - 8px); }
  .card.h { width: 100%; }
  .card .shot { height: auto; width: 100%; }
  .card.v .cap, .card.h .cap { width: 100%; }
  .card .cap b { font-size: 15px; }
  .card .play { width: 48px; height: 48px; margin: -24px 0 0 -24px; }
}
@media (max-width: 640px) {
  .pf-hero { padding: 48px 0 44px; }
  .pf-stats { gap: 12px; }
  .ty { margin-top: 40px; padding-top: 28px; }
  .ty-head { gap: 14px; }
  .ty-head .num { width: 48px; height: 48px; font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) { .card, .card .shot img, .card .play { transition: none; } .card:hover .shot img { transform: none; } }
