/* v08 preserves the existing visual language and restores complete product routes. */
/* v09: keep the screenshot row intrinsic instead of retaining the old 420px slot. */
.portfolio-v08 .selected-work-card{grid-template-rows:auto 1fr;min-height:0}
.portfolio-v08 .hero h1 em{font-size:.59em;letter-spacing:0}
.portfolio-v08 .v8-yuli-route{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin:22px 0}
.v8-yuli-route figure{margin:0;min-width:0;border:1px solid var(--line);border-radius:18px;background:#fff;overflow:hidden}
.v8-yuli-route figure>span{display:block;padding:17px 20px 13px;font-size:11px;font-weight:600;letter-spacing:.06em;color:var(--purple)}
.v8-yuli-route figure>a{display:block;height:310px;padding:12px;background:#faf8fe}
.v8-yuli-route img{display:block;width:100%;height:100%;object-fit:contain}
.v8-yuli-route figcaption{padding:17px 20px}
.v8-yuli-route figcaption b{display:block;font-family:var(--serif);font-weight:600;font-size:21px;line-height:1.5;color:var(--deep);margin-bottom:7px}
.v8-yuli-route figcaption small{font-size:12px;line-height:1.8;color:var(--muted)}
.v8-english-entry{display:flex;align-items:center;gap:22px;border:1px solid #ddd0ed;border-radius:15px;background:#eee7f8;padding:21px 24px;margin-bottom:20px}
.v8-english-entry>span{font-size:10px;color:#937fa7;letter-spacing:.11em}
.v8-english-entry b{font-size:21px;font-family:var(--serif);font-weight:600;color:var(--deep)}
.v8-english-entry p{font-size:12px;color:var(--muted);line-height:1.8;margin:8px 0 0}
.v8-english-entry strong{margin-left:auto;font-size:12px;color:var(--purple);white-space:nowrap}
.v8-corpus{padding:29px 30px;background:#f6f2fc;border:1px solid #dfd3ed;border-radius:20px;margin-bottom:22px}
.v8-corpus-heading{display:flex;justify-content:space-between;align-items:center;gap:25px}
.v8-corpus-heading h3{font-family:var(--serif);font-size:29px;color:var(--deep);margin:11px 0}
.v8-corpus-heading>a{border:1px solid #d8c8e9;border-radius:99px;padding:10px 15px;background:#fff;font-size:12px;color:var(--purple);white-space:nowrap}
.v8-corpus>p{font-size:14px;color:var(--muted);line-height:1.9;max-width:1000px;margin:8px 0 23px}
.v8-corpus-points{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.v8-corpus-points>div{padding-top:17px;border-top:1px solid #dfd2ed}
.v8-corpus-points b{font-size:16px;color:#5f457e}
.v8-corpus-points p{font-size:12px;color:var(--muted);line-height:1.9;margin:9px 0 0}
.v8-lineage{display:flex;align-items:center;flex-wrap:wrap;gap:12px 18px;padding:19px 21px;background:#5b427b;border-radius:12px;color:#fff;margin-top:24px;font-size:12px;line-height:1.8}
.v8-lineage span{color:#cbb7de}.v8-lineage>a{color:#f4eaff}
.portfolio-v08 .v6-skill-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.v8-bot-overview{display:grid;grid-template-columns:1.2fr 1fr;gap:30px;padding:27px 29px;border:1px solid var(--line);border-radius:19px;background:#f7f3fc;margin-top:28px}
.v8-bot-overview h3{font-family:var(--serif);font-size:27px;font-weight:600;color:var(--deep);line-height:1.5;margin:12px 0}
.v8-bot-overview p{font-size:13px;line-height:1.9;color:var(--muted);margin:0}
.v8-bot-actions{display:flex;flex-direction:column;gap:11px;justify-content:center}
.v8-bot-actions span{font-size:13px;line-height:1.8;color:#6d5285;background:#fff;border:1px solid var(--line);border-radius:10px;padding:11px 17px}
@media(max-width:900px){.v8-corpus-heading{align-items:start}.v8-corpus-heading h3{font-size:26px}.v8-corpus-heading>a{font-size:11px}.v8-yuli-route figcaption b{font-size:19px}.v8-bot-overview{grid-template-columns:1fr 1fr}}
@media(max-width:680px){.portfolio-v08 .hero h1 em{font-size:.63em}.portfolio-v08 .v8-yuli-route{grid-template-columns:1fr;gap:16px}.v8-yuli-route figure>a{height:285px}.v8-english-entry{flex-wrap:wrap;gap:10px 15px;padding:20px}.v8-english-entry>span{width:100%}.v8-english-entry b{font-size:21px}.v8-english-entry strong{margin:4px 0 0}.v8-corpus{padding:23px 21px}.v8-corpus-heading{display:block}.v8-corpus-heading>a{display:inline-block;margin:4px 0 10px}.v8-corpus-heading h3{font-size:25px}.v8-corpus-points,.portfolio-v08 .v6-skill-grid,.v8-bot-overview{grid-template-columns:1fr}.v8-corpus-points{gap:18px}.v8-lineage{gap:9px 13px;padding:17px;font-size:11px}.v8-lineage>a{width:100%}.v8-bot-overview{padding:23px 21px;gap:20px}.v8-bot-overview h3{font-size:25px}}
/* Let the native-ratio phone and its label occupy real rows on single-column screens. */
@media(max-width:900px){.portfolio-v08 .hero-art{height:auto;min-height:0;padding-top:12px;row-gap:14px}.portfolio-v08 .hero-note{position:static;justify-self:end}}
