/* Cardss — styles for collections.html and collection pages. Consolidated from the original inline blocks in their original order (later rules intentionally override earlier ones). */
*{box-sizing:border-box}
body{margin:0;background:#f5f3ed;color:#22231e;font:16px Arial,"PingFang TC","Microsoft JhengHei",sans-serif}
a{color:inherit;text-decoration:none}
header,footer{padding:25px 6%;display:flex;justify-content:space-between;align-items:center;gap:20px;border-bottom:1px solid #d5d5c9}
header nav{display:flex;gap:25px;align-items:center}
.logo{font-size:32px;font-weight:900;letter-spacing:-2px}
section{padding:65px 6%}
h1{font-size:60px;letter-spacing:-3px}
h2{font-size:40px;letter-spacing:-1px;font-weight:500}
h3{font-weight:500}
p{line-height:1.7;color:#67685f;max-width:650px}
.eyebrow{font-size:11px;letter-spacing:2px}
.btn{background:#cfef67;padding:15px 22px;display:inline-block;font-size:13px}
button:focus-visible,a:focus-visible{outline:3px solid #66803c;outline-offset:5px}
footer{font-size:12px;border-top:1px solid #d5d5c9;margin-top:40px}
header{flex-wrap:wrap}
@media(max-width:550px){header nav{gap:15px;font-size:12px}h1{font-size:42px;letter-spacing:-1px}section{padding:45px 6%}}
.portfolio-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:30px}
.portfolio-tile{display:block;text-decoration:none;color:inherit}
.project-cover{height:340px;display:flex;align-items:center;justify-content:center;overflow:hidden;padding:30px}
.project-cover img{width:37%;height:250px;object-fit:contain;filter:drop-shadow(0 15px 12px #0003);transition:transform .3s}
.project-cover img:first-child{transform:rotate(-10deg) translateX(12px)}
.project-cover img:nth-child(2){z-index:1;transform:translateY(-12px)}
.project-cover img:last-child{transform:rotate(10deg) translateX(-12px)}
.portfolio-tile:hover img:nth-child(2){transform:translateY(-22px)}
.portfolio-tile h3{font-size:23px;margin:20px 0 8px}
.portfolio-tile p{font-size:13px;line-height:1.7}
.portfolio-heading{display:flex;justify-content:space-between;gap:30px;align-items:end;margin-bottom:35px}
.portfolio-heading h2{margin-bottom:0}
.real-hero{padding:45px 0 30px;text-align:center;overflow:hidden;background:radial-gradient(ellipse,#e3e9d7,transparent 70%)}
.real-hero h1{font-size:clamp(40px,5vw,70px);margin:20px;letter-spacing:-3px}
.real-stage{height:400px;position:relative;perspective:1200px;touch-action:pan-y}
.real-card{position:absolute;top:25px;left:50%;width:235px;height:330px;margin-left:-117.5px;transition:transform .7s,opacity .7s;filter:drop-shadow(0 20px 15px #20301c33)}
.real-card img{width:100%;height:100%;object-fit:contain}
.real-caption h2{font-size:25px;letter-spacing:0;margin:0 0 15px}
.real-caption a{text-decoration:underline;font-size:13px}
.project-intro{display:grid;grid-template-columns:1fr 1fr;gap:60px;align-items:center}
.project-intro h1{font-size:clamp(40px,5vw,70px);letter-spacing:-2px;line-height:1.2}
.project-intro .project-cover{height:480px}
.project-intro .project-cover img{height:340px}
.cards-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:30px}
.gallery-card{border:0;background:transparent;cursor:pointer;padding:0;text-align:left;color:inherit}
.gallery-card img{width:100%;height:auto;display:block;box-shadow:0 8px 20px #0001}
.gallery-card span{display:block;font-size:11px;margin-top:12px}
.viewer{width:min(850px,95vw);max-height:95dvh;background:#f5f3ed;border:1px solid #ccc;padding:22px;color:#22231e}
.viewer::backdrop{background:#000b}
.viewer img{height:min(65dvh,650px);max-width:100%;width:auto;object-fit:contain;display:block;margin:20px auto}
.viewer-controls{display:flex;justify-content:space-between;align-items:center;gap:10px}
.viewer button{cursor:pointer;border:1px solid #ccc;padding:10px 18px;background:none;color:inherit}
.viewer p{font-size:12px;margin:0 auto;text-align:center}
.source-note{font-size:12px;color:#6a6c61;max-width:800px}
.featured-real{display:grid;grid-template-columns:1fr 1fr;gap:60px;align-items:center;background:#e9ece1}
.featured-real .project-cover{height:440px}
.featured-real .project-cover img{height:330px}
.pf-lang button{border:1px solid #cdd1c5;background:transparent;padding:9px;cursor:pointer}
.pf-lang button[aria-pressed=true]{background:#263b24;color:white}
@media(max-width:850px){.portfolio-grid{grid-template-columns:1fr 1fr}.cards-grid{grid-template-columns:repeat(3,1fr)}.project-intro,.featured-real{grid-template-columns:1fr;gap:25px}.project-intro .project-cover{height:350px}}
@media(max-width:550px){.portfolio-grid{grid-template-columns:1fr}.cards-grid{grid-template-columns:repeat(2,1fr);gap:24px 16px}.project-cover{height:320px}.real-card{width:185px;height:260px;margin-left:-92.5px}.real-stage{height:320px}.real-hero h1{letter-spacing:-1px}.portfolio-heading{align-items:start;flex-direction:column}.project-intro .project-cover img{height:260px}.featured-real .project-cover{height:330px}.featured-real .project-cover img{height:250px}.viewer-controls{flex-wrap:wrap}}
@media(prefers-reduced-motion:reduce){.real-card,.project-cover img{transition:none}}
body{background:#101210;color:#f1eee3}
.real-hero{background:radial-gradient(ellipse at 50% 55%,#3b422955,transparent 65%),#101210;padding-top:55px}
.real-hero h1{font-family:Georgia,serif!important;font-weight:400;letter-spacing:-2px}
.real-caption a{color:#cfb97d}
.real-caption h2{font-family:Georgia,serif!important}
.real-card{filter:drop-shadow(0 20px 18px #0009)}
.featured-real{background:#1c211b}
.portfolio-tile{color:#f1eee3}
.portfolio-tile p{color:#aaa99f}
.portfolio-heading>a{color:#cfb97d}
.portfolio-grid{gap:34px}
.project-cover{border:1px solid #a08b5344;background:#1c211b!important}
.portfolio-tile h3{font-family:Georgia,"Microsoft JhengHei",serif}
.portfolio-tile>span{color:#cfb97d}
.featured-real .btn{background:#cfb97d;color:#151813}
.project-intro h1{font-family:Georgia,"Microsoft JhengHei",serif;font-weight:400}
.project-intro .project-cover{background:radial-gradient(ellipse,#404632,#1b211a)!important}
header,footer{border-color:#34382e;background:#101210;color:#f1eee3}
p,.source-note{color:#aaa99f}
.btn{background:#cfb97d;color:#151813}
.pf-lang button{color:#f1eee3;border-color:#655b3e}
.pf-lang button[aria-pressed=true]{background:#cfb97d;color:#151813}
.viewer{background:#151a14;color:#f1eee3;border-color:#655b3e}
.viewer button{color:#f1eee3;border-color:#655b3e}
.gallery-card{color:#f1eee3}
.gallery-card img{box-shadow:0 10px 22px #0006}
.viewer::backdrop{background:#000d}
a:focus-visible,button:focus-visible{outline-color:#cfb97d!important}
h1,h2{font-family:Georgia,"Microsoft JhengHei",serif;font-weight:400}
.logo{display:inline-flex;align-items:center;line-height:1;flex-shrink:0}
.logo::after{content:none!important;display:none!important}
.logo img{display:block;width:132px;height:auto;max-width:100%}
@media(max-width:600px){.logo img{width:112px}}
