/* EM Portfolio v187 – scoped to /portfolio/ only; preserves site header/footer. */
.em-port{color:#1b2c41;background:#fff}.em-port *{box-sizing:border-box}.em-port button,.em-port input{font:inherit}
.em-port .site-wrap{width:min(1190px,calc(100% - 64px));margin-inline:auto}
.em-port-hero{background:#14223a;color:white;position:relative;overflow:hidden}
.em-port-hero:after{content:"";position:absolute;width:540px;height:540px;right:-200px;top:-215px;border-radius:50%;background:radial-gradient(circle,rgba(41,137,101,.25),transparent 72%);pointer-events:none}
.em-port-hero-inner{position:relative;z-index:1;padding-block:103px 72px}
.em-port-kicker,.em-overline{letter-spacing:.20em;text-transform:uppercase;font-size:11px;font-weight:800}
.em-port-kicker{display:flex;gap:15px;align-items:center;color:#b8c6d4}.em-port-kicker>span:last-child{color:#a9c6b5}.em-port-dot{width:8px;height:8px;border-radius:50%;background:#34bc7e;box-shadow:0 0 0 6px rgba(52,188,126,.14)}
.em-port-hero h1{font-size:clamp(48px,6.4vw,95px);letter-spacing:-.068em;font-weight:780;line-height:.98;margin:32px 0 26px;max-width:1120px}
.em-port-hero h1 em{color:#b8d8c7;font-style:normal}.em-port-hero p{color:#c7d1df;font-size:clamp(15px,1.7vw,18px);line-height:1.75;max-width:650px}
.em-port-jump{margin-top:58px;padding-top:18px;border-top:1px solid #4b5870;display:flex;gap:14px;max-width:840px}
.em-port-jump a{color:#f1f5f9;text-decoration:none;display:flex;gap:16px;align-items:center;justify-content:space-between;border:1px solid #52667c;border-radius:9px;padding:16px 21px;width:50%;font-weight:760;transition:background .2s,border-color .2s}
.em-port-jump a:hover{background:#203854;border-color:#85c4a6}.em-port-jump a span:first-child{font-size:11px;color:#99bdae}
.em-photo-section{padding:105px 0 120px;background:#fafbfc;scroll-margin-top:60px}.em-video-section{padding:105px 0 110px;background:#111e32;color:#fff;scroll-margin-top:50px}
.em-section-head{display:flex;justify-content:space-between;align-items:end;gap:25px;margin-bottom:43px}.em-section-head h2{font-size:clamp(48px,6vw,86px);letter-spacing:-.065em;line-height:1;margin:15px 0 19px;color:#18283f}
.em-section-head p{max-width:670px;color:#68788c;line-height:1.75;font-size:15px;margin:0}.em-section-number{color:#77899e;font-weight:780;font-size:12px;white-space:nowrap}
.em-period{color:#178b58}.em-overline{color:#1d8b60}.em-section-head-dark h2{color:#f3f7fc}.em-section-head-dark p{color:#c0cbd9}.em-section-head-dark .em-overline{color:#68c897}
.em-photo-controls{display:flex;align-items:center;gap:16px;margin-bottom:25px;flex-wrap:wrap}.em-photo-controls label{font-size:11px;letter-spacing:.11em;text-transform:uppercase;color:#536579;font-weight:850}
.em-photo-controls input{border:1px solid #d8e1e9;outline:0;background:#fff;border-radius:8px;min-width:230px;flex:1;max-width:440px;padding:14px 16px;color:#1d2c42}
.em-photo-controls input:focus-visible{box-shadow:0 0 0 3px #78bca4;border-color:#258e5c}.em-photo-controls span{font-size:11px;color:#65768a}
.em-project-list{border-top:2px solid #263e5b}.em-project{border-bottom:1px solid #dce4e9;background:transparent}.em-project[hidden]{display:none}
.em-project-row{list-style:none;display:grid;grid-template-columns:57px minmax(0,1fr) 88px 30px;align-items:center;gap:17px;padding:22px 12px 22px 4px;cursor:pointer;transition:background .18s}
.em-project-row::-webkit-details-marker{display:none}.em-project-row:hover{background:#eef4f2}.em-project-row:focus-visible{outline:3px solid #4ba885;outline-offset:-2px}
.em-project-index{font-size:12px;color:#6b8592;font-weight:800}.em-project-titles strong{display:block;font-size:clamp(17px,1.7vw,24px);line-height:1.2;letter-spacing:-.025em;font-weight:740}.em-project-titles small{display:block;color:#76899b;font-size:12px;margin-top:5px}
.em-project-count{font-size:12px;color:#6c7e8e;text-align:right;white-space:nowrap}.em-project-expand{justify-self:end;font-size:25px;color:#1f925c;line-height:1;transition:transform .16s}
.em-project[open] .em-project-expand{transform:rotate(45deg)}.em-project[open]>.em-project-row{background:#eaf3ef}.em-project-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:18px 14px 30px;background:#fff}
.em-photo-item{border:1px solid #e0e6ed;cursor:pointer;padding:0;background:#f3f6f8;border-radius:6px;overflow:hidden;text-align:left;color:#263a50}
.em-photo-item img{width:100%;height:auto;aspect-ratio:4/3;object-fit:contain;display:block}.em-photo-item span{font-size:11px;font-weight:780;display:flex;justify-content:space-between;padding:9px 11px}.em-photo-item:hover{box-shadow:0 8px 24px rgba(9,29,52,.12)}.em-photo-item:focus-visible{outline:3px solid #3ca17a}
.em-photo-source{margin-top:22px;font-size:12px;color:#7a889a}.em-photo-empty{padding:25px;color:#677991}.em-channel-link{font-size:13px;color:#c8eed9;border:1px solid #526f76;border-radius:8px;padding:13px 19px;text-decoration:none;white-space:nowrap;align-self:center}
.em-channel-link:hover{background:#233a45}.em-video-layout{display:grid;grid-template-columns:minmax(255px,.87fr) minmax(0,1.6fr);gap:30px;align-items:start}
.em-video-categories{display:grid;gap:9px}.em-video-cat{width:100%;border:1px solid #38485c;background:#1c2c43;color:#e3eaf4;padding:19px;display:grid;grid-template-columns:33px 1fr 25px;align-items:center;gap:12px;text-align:left;cursor:pointer;border-radius:8px}
.em-video-cat .em-video-num{font-size:12px;color:#87ba9f}.em-video-cat strong{font-size:16px;font-weight:720;display:block}.em-video-cat small{display:block;color:#98aabb;margin-top:6px;font-size:11px}.em-video-cat:hover,.em-video-cat.is-selected{background:#273e4d;border-color:#60af8a}.em-video-cat:focus-visible{outline:3px solid #77cca8;outline-offset:2px}
.em-video-detail{border:1px solid #3b4d61;background:#1a2c45;border-radius:12px;min-height:370px;overflow:hidden}.em-video-initial{min-height:370px;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;padding:36px;color:#bcc9d7}
.em-play-mark{font-size:25px;border:1px solid #597a82;color:#9de0b7;padding:18px 19px;border-radius:50%;margin-bottom:18px}.em-video-initial h3{color:#fff;margin:5px;font-size:21px}.em-video-initial p{margin:7px 0;max-width:300px;font-size:14px;line-height:1.6}
.em-video-player{aspect-ratio:16/9;background:#060f1c;display:grid;place-items:center;position:relative;isolation:isolate}.em-video-poster{background-size:cover;background-position:center;width:100%;height:100%;position:absolute;inset:0;opacity:.45}
.em-video-player:after{content:"";position:absolute;inset:0;background:linear-gradient(transparent,rgba(0,0,0,.45));pointer-events:none}.em-video-play{border:1px solid #90c7b2;border-radius:99px;background:#1b9a67;color:#fff;padding:15px 24px;cursor:pointer;z-index:2;font-weight:760}.em-video-play:hover{background:#207f61}
.em-video-player iframe{position:relative;z-index:3;width:100%;height:100%;border:0;aspect-ratio:16/9}.em-video-info{padding:25px}.em-video-info .em-video-kicker{letter-spacing:.13em;font-size:10px;color:#78cb9c;font-weight:790}.em-video-info h3{font-size:clamp(23px,2.6vw,32px);margin:9px 0;letter-spacing:-.045em;color:#fff}.em-video-info p{font-size:13px;line-height:1.7;color:#b5c6d4}.em-video-links{display:flex;flex-wrap:wrap;gap:12px;margin:16px 0 5px}.em-video-links a{font-size:12px;font-weight:760;color:#e4fff1;border:1px solid #789b8f;padding:11px 14px;border-radius:6px;text-decoration:none}.em-video-links a:hover{background:#2e4d57}
.em-video-no-playlist{font-size:11px;color:#a9b7c8;margin-top:13px}.em-quality-note{padding:23px 26px;margin-top:30px;border-top:1px solid #3b5268;color:#aebccc;display:flex;gap:28px;align-items:flex-start}.em-quality-note strong{white-space:nowrap;font-size:12px;text-transform:uppercase;letter-spacing:.1em;color:#a7dcbe}.em-quality-note p{font-size:12px;line-height:1.75;max-width:800px;margin:0}
.em-port-outro{background:#e9f0eb;padding:55px 0}.em-port-outro-inner{display:flex;align-items:center;justify-content:space-between;gap:28px}.em-port-outro span{font-size:10px;letter-spacing:.16em;font-weight:850;color:#3a8060}.em-port-outro h2{color:#143a31;font-size:clamp(25px,3.4vw,44px);letter-spacing:-.04em;margin:10px 0 0}.em-port-outro a{background:#17372d;color:#fff;border-radius:8px;text-decoration:none;padding:18px 23px;font-weight:770;white-space:nowrap}
.em-photo-dialog{width:min(1120px,94vw);max-height:96vh;border:1px solid #dce4ee;border-radius:12px;padding:0;background:#111d2c;color:#fff;box-shadow:0 35px 90px rgba(0,0,0,.55)}.em-photo-dialog::backdrop{background:rgba(7,19,35,.88)}.em-photo-dialog-inner{display:flex;flex-direction:column;max-height:95vh}.em-photo-dialog-head,.em-photo-dialog-foot{padding:13px 18px;display:flex;justify-content:space-between;align-items:center;gap:20px}.em-photo-dialog-head{border-bottom:1px solid #304052}.em-photo-dialog-head button{background:#26394b;border:0;border-radius:4px;color:white;padding:10px;cursor:pointer}.em-photo-dialog-body{display:flex;align-items:center;justify-content:space-between;min-height:0;flex:1;gap:6px;padding:8px}.em-photo-dialog-body img{max-width:calc(100% - 94px);max-height:calc(95vh - 138px);object-fit:contain}.em-photo-arrow{padding:15px 12px;background:#273b4c;color:white;border:0;cursor:pointer;font-size:27px;border-radius:5px}.em-photo-dialog-foot{border-top:1px solid #304052;font-size:12px;color:#afc4d5}.em-photo-dialog-foot a{color:#a4e3c1}
@media(max-width:850px){.em-port .site-wrap{width:min(100% - 36px,1190px)}.em-port-hero-inner{padding-block:73px 55px}.em-port-hero h1{font-size:clamp(43px,8.5vw,65px)}.em-photo-section,.em-video-section{padding:74px 0}.em-section-head{align-items:flex-start;flex-direction:column}.em-video-layout{grid-template-columns:1fr}.em-video-categories{grid-template-columns:repeat(2,minmax(0,1fr))}.em-photo-controls span{width:100%}.em-project-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}.em-quality-note{flex-direction:column;gap:7px}}
@media(max-width:540px){.em-port .site-wrap{width:calc(100% - 28px)}.em-port-kicker{font-size:9px;gap:9px;flex-wrap:wrap}.em-port-hero h1{font-size:43px}.em-port-jump{flex-direction:column;gap:9px}.em-port-jump a{width:100%}.em-section-head h2{font-size:48px}.em-photo-controls input{min-width:0;width:100%;flex-basis:100%;max-width:100%}.em-project-row{grid-template-columns:27px minmax(0,1fr) 57px 19px;gap:7px;padding:17px 4px}.em-project-titles strong{font-size:16px}.em-project-titles small{font-size:10px}.em-project-count{font-size:10px}.em-project-gallery{grid-template-columns:1fr;gap:13px;padding:12px 5px 20px}.em-video-categories{grid-template-columns:1fr}.em-video-cat{padding:16px}.em-video-info{padding:19px}.em-channel-link{max-width:100%;white-space:normal}.em-port-outro-inner{flex-direction:column;align-items:flex-start}.em-quality-note{padding-inline:0}.em-photo-dialog-body img{max-width:calc(100% - 70px)}.em-photo-arrow{padding:12px 8px}}
@media(prefers-reduced-motion:reduce){.em-port *{scroll-behavior:auto!important;transition:none!important}}

/* V189 – autoplay status. Only inside /portfolio/. */
.em-video-autoplay .em-video-waiting{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:10px;padding:24px;width:100%;height:100%;min-height:240px;background:radial-gradient(circle at center,#1c3855 0%,#061426 72%);color:#eaf5f3}
.em-video-waiting-mark{display:grid;place-items:center;border:1px solid #3c6f72;border-radius:50%;width:58px;height:58px;color:#83deb1}
.em-video-waiting strong{font-size:clamp(16px,2vw,22px)}.em-video-waiting small{max-width:360px;color:#9badbf;font-size:13px;line-height:1.5}
.em-video-autoplay.is-playing{display:block}.em-video-autoplay.is-playing:after{display:none}
.em-video-autoplay iframe{display:block;width:100%;height:100%;min-height:200px;border:0}
